Skip to content

Commit

Permalink
Remove null union from callable that should not return it
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Jun 26, 2024
1 parent f30d834 commit befd302
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/framework/src/Support/Includes.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public static function markdown(string $filename, ?string $default = null): ?Htm
return static::getInclude([static::class, 'renderMarkdown'], $filename, $default, '.md');
}

/** @param callable(string): (\Illuminate\Support\HtmlString|string|null) $method */
/** @param callable(string): (\Illuminate\Support\HtmlString|string) $method */
protected static function getInclude(callable $method, string $filename, ?string $default, string $extension = ''): HtmlString|string|null
{
$path = static::normalizePath($filename, $extension);
Expand Down

0 comments on commit befd302

Please sign in to comment.