refactor: fix return type

This commit is contained in:
kenjis 2023-10-22 17:26:09 +09:00
parent 597101b98b
commit 78dc6456e4
No known key found for this signature in database
GPG Key ID: BD254878922AF198
2 changed files with 2 additions and 2 deletions

View File

@ -179,7 +179,7 @@ if (! function_exists('doctype')) {
$config = new DocTypes();
$doctypes = $config->list;
return $doctypes[$type] ?? false;
return $doctypes[$type] ?? '';
}
}

View File

@ -619,7 +619,7 @@ class Parser extends View
$replace = $this->config->filters[$filter]($replace, ...$param);
}
return $replace;
return (string) $replace;
}
// Plugins