Skip to content

Commit 78dc645

Browse files
committed
refactor: fix return type
1 parent 597101b commit 78dc645

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

system/Helpers/html_helper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ function doctype(string $type = 'html5'): string
179179
$config = new DocTypes();
180180
$doctypes = $config->list;
181181

182-
return $doctypes[$type] ?? false;
182+
return $doctypes[$type] ?? '';
183183
}
184184
}
185185

system/View/Parser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,7 @@ protected function applyFilters(string $replace, array $filters): string
619619
$replace = $this->config->filters[$filter]($replace, ...$param);
620620
}
621621

622-
return $replace;
622+
return (string) $replace;
623623
}
624624

625625
// Plugins

0 commit comments

Comments
 (0)