Skip to content

Commit

Permalink
Widen printUrlOrString parameter type
Browse files Browse the repository at this point in the history
  • Loading branch information
iansltx committed Apr 23, 2024
1 parent 41f6936 commit 51175fe
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/View/HtmlView.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,7 @@ protected function printArray(array $content): null
return null;
}

/**
* Renders the passed value, either raw or as a link (if prepended by http
* or https)
*
* @param string|bool $value
*
* @return void
*/
protected function printUrlOrString(string|bool $value): void
protected function printUrlOrString(string|bool|null $value): void
{
if (is_bool($value)) {
$value = $value ? 'true' : 'false';
Expand Down

0 comments on commit 51175fe

Please sign in to comment.