Skip to content

Commit 5e73eef

Browse files
[9.x] Fix PHP warnings when rendering long blade string (#41956) (#41970)
* [9.x] Fix PHP warnings when rendering long blade string (#41745) * Apply fixes from StyleCI (cherry picked from commit bb0da4a58a49fdb81e17c7b5ee364a515b015f33) Co-authored-by: Andrew Bashtannik <[email protected]>
1 parent f9f3ab8 commit 5e73eef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Component.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public function resolveView()
7575
$resolver = function ($view) {
7676
$factory = Container::getInstance()->make('view');
7777

78-
return $factory->exists($view)
78+
return strlen($view) <= PHP_MAXPATHLEN && $factory->exists($view)
7979
? $view
8080
: $this->createBladeViewFromString($factory, $view);
8181
};

0 commit comments

Comments
 (0)