Skip to content

Commit

Permalink
class_exists(): Passing null to parameter #1 ($class) of type string …
Browse files Browse the repository at this point in the history
…is deprecated in php 8.1 (#327)
  • Loading branch information
jtallinger authored Mar 6, 2023
1 parent 5e14d42 commit 8d934b0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ protected function getStorage($storageType)
case 'object':
return new ObjectStorage();
default:
if(class_exists($storageType) && new $storageType() instanceof StorageInterface) {
if($storageType !== null && class_exists($storageType) && new $storageType() instanceof StorageInterface) {
return new $storageType();
} else {
return new LaravelSession(app('config'), app('request')->session());
Expand Down

0 comments on commit 8d934b0

Please sign in to comment.