Skip to content

Commit

Permalink
Fix crc32(): Passing null deprecation (#8625)
Browse files Browse the repository at this point in the history
  • Loading branch information
ziming authored Jul 3, 2024
1 parent 70503b7 commit 0828297
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public static function getUniqueBladeCompileTimeKey()
// from using load-balancers and such.
// Therefore, we create a key based on the currently compiling view path and
// number of already compiled directives here...
$viewPath = crc32(app('blade.compiler')->getPath());
$viewPath = crc32(app('blade.compiler')->getPath() ?? '');

if (! isset(static::$countersByViewPath[$viewPath])) static::$countersByViewPath[$viewPath] = 0;

Expand Down

0 comments on commit 0828297

Please sign in to comment.