fix type hint

master
Jean-Christian Paul Denis 2023-04-24 16:17:19 +02:00
parent d97165e427
commit 11b525395b
Signed by: JcDenis
GPG Key ID: 1B5B8C5B90B6C951
1 changed files with 2 additions and 2 deletions

View File

@ -32,9 +32,9 @@ $this->registerModule(
);
if (!function_exists('\_mail')) {
function _mail($to, $subject, $message, $headers)
function _mail(string $to, string $subject, string $message, string|array $headers = '', ?string $params = null): bool
{
$headers = is_array($headers) ? implode("\n\t", $headers) : (string) $headers;
$headers = is_array($headers) ? implode("\n\t", $headers) : $headers;
$cur = dcCore::app()->con->openCursor(dcCore::app()->prefix . dcLog::LOG_TABLE_NAME);
$cur->setField('log_table', basename(__DIR__));