diff --git a/packages/framework/src/Support/Includes.php b/packages/framework/src/Support/Includes.php index f4c34e70664..1dd40e6511e 100644 --- a/packages/framework/src/Support/Includes.php +++ b/packages/framework/src/Support/Includes.php @@ -112,11 +112,13 @@ protected static function normalizePath(string $filename, string $extension = '' protected static function getFileContents(string $path): ?string { - if (! Filesystem::exists(static::path($path))) { + $path = static::path($path); + + if (! Filesystem::exists($path)) { return null; } - return Filesystem::get(static::path($path)); + return Filesystem::get($path); } protected static function renderHtml(string $html): HtmlString