Skip to content

Commit 03dea2a

Browse files
authored
Merge pull request laravel-doctrine#51 from emsys-code-crew/bugfix-service-provider-deprecated-laravel-helper-methods
Fix fatal error: call to undefined str_contains function
2 parents 1193b54 + 40ada33 commit 03dea2a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/AclServiceProvider.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
use Doctrine\Common\Annotations\AnnotationRegistry;
66
use Illuminate\Contracts\Auth\Access\Gate;
77
use Illuminate\Support\ServiceProvider;
8+
use Illuminate\Support\Str;
89
use LaravelDoctrine\ACL\Contracts\HasPermissions;
910
use LaravelDoctrine\ACL\Mappings\AnnotationLoader;
1011
use LaravelDoctrine\ACL\Permissions\PermissionManager;
@@ -97,7 +98,7 @@ protected function getConfigPath()
9798
*/
9899
protected function isLumen()
99100
{
100-
return str_contains($this->app->version(), 'Lumen');
101+
return Str::contains($this->app->version(), 'Lumen');
101102
}
102103

103104
/**

0 commit comments

Comments
 (0)