Skip to content

Commit 2a5ef91

Browse files
Use isset to check for initialisation (#1813)
1 parent 9c32934 commit 2a5ef91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Passport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ public static function keyPath(string $file): string
404404
{
405405
$file = ltrim($file, '/\\');
406406

407-
return static::$keyPath
407+
return isset(static::$keyPath)
408408
? rtrim(static::$keyPath, '/\\').DIRECTORY_SEPARATOR.$file
409409
: storage_path($file);
410410
}

0 commit comments

Comments
 (0)