mirror of
https://github.com/codeigniter4/CodeIgniter4.git
synced 2025-02-20 11:44:28 +08:00
refactor: fix return type
This commit is contained in:
parent
597101b98b
commit
78dc6456e4
@ -179,7 +179,7 @@ if (! function_exists('doctype')) {
|
||||
$config = new DocTypes();
|
||||
$doctypes = $config->list;
|
||||
|
||||
return $doctypes[$type] ?? false;
|
||||
return $doctypes[$type] ?? '';
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -619,7 +619,7 @@ class Parser extends View
|
||||
$replace = $this->config->filters[$filter]($replace, ...$param);
|
||||
}
|
||||
|
||||
return $replace;
|
||||
return (string) $replace;
|
||||
}
|
||||
|
||||
// Plugins
|
||||
|
Loading…
x
Reference in New Issue
Block a user