Skip to content

Commit

Permalink
Make extension optional
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Jun 26, 2024
1 parent 15472ec commit 92fe45d
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 @@ -94,7 +94,7 @@ public static function markdown(string $filename, ?string $default = null): ?Htm
return static::getInclude([static::class, 'renderMarkdown'], $filename, $default, '.md');
}

protected static function getInclude(callable $method, string $filename, ?string $default, string $extension): ?HtmlString
protected static function getInclude(callable $method, string $filename, ?string $default, string $extension = ''): ?HtmlString
{
$path = static::normalizePath($filename, $extension);
$contents = static::getFileContents(static::path($path));
Expand Down

0 comments on commit 92fe45d

Please sign in to comment.