feat: Laravel 11 #241
Annotations
11 errors
|
Run a static analysis with phpstan/phpstan:
src/Directives/CanAtLeastDirective.php#L15
Method Yajra\Acl\Directives\CanAtLeastDirective::handle() has parameter $permissions with no value type specified in iterable type array.
|
Run a static analysis with phpstan/phpstan:
src/Directives/RoleDirective.php#L10
Method Yajra\Acl\Directives\RoleDirective::handle() has parameter $role with no value type specified in iterable type array.
|
Run a static analysis with phpstan/phpstan:
src/GateRegistrar.php#L44
Method Yajra\Acl\GateRegistrar::getPermissions() return type with generic class Illuminate\Support\Collection does not specify its types: TKey, TValue
|
Run a static analysis with phpstan/phpstan:
src/GateRegistrar.php#L52
No error to ignore is reported on line 52.
|
Run a static analysis with phpstan/phpstan:
src/Middleware/CanAtLeastMiddleware.php#L15
Method Yajra\Acl\Middleware\CanAtLeastMiddleware::handle() has parameter $permissions with no value type specified in iterable type array.
|
Run a static analysis with phpstan/phpstan:
src/Middleware/CanAtLeastMiddleware.php#L19
Cannot call method canAtLeast() on Illuminate\Foundation\Auth\User|null.
|
Run a static analysis with phpstan/phpstan:
src/Middleware/RoleMiddleware.php#L20
Call to an undefined method Illuminate\Foundation\Auth\User::hasRole().
|
Run a static analysis with phpstan/phpstan:
src/Models/Permission.php#L27
PHPDoc type array<string> of property Yajra\Acl\Models\Permission::$fillable is not covariant with PHPDoc type array<int, string> of overridden property Illuminate\Database\Eloquent\Model::$fillable.
|
Run a static analysis with phpstan/phpstan:
src/Models/Permission.php#L47
Method Yajra\Acl\Models\Permission::createResource() return type with generic class Illuminate\Database\Eloquent\Collection does not specify its types: TKey, TModel
|
Run a static analysis with phpstan/phpstan:
src/Models/Permission.php#L99
Method Yajra\Acl\Models\Permission::users() return type with generic class Illuminate\Database\Eloquent\Relations\BelongsToMany does not specify its types: TRelatedModel
|
Loading