Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Poyigi <[email protected]>
  • Loading branch information
sampoyigi committed Jun 16, 2024
1 parent fd5c14e commit 1e9737e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Flame/Igniter.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

class Igniter
{
const VERSION = 'v4.0.0';
const VERSION = 'v4.0.0-beta';

/**
* The base path for extensions.
Expand Down
4 changes: 2 additions & 2 deletions src/Flame/Support/Helpers/template.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ function get_title()
}

if (!function_exists('html')) {
function html(string $html)
function html(?string $html): \Illuminate\Support\HtmlString
{
return new \Illuminate\Support\HtmlString($html);
return new \Illuminate\Support\HtmlString($html ?: '');
}
}

0 comments on commit 1e9737e

Please sign in to comment.