feat: Laravel 11 #241
static-analysis.yml
on: pull_request
Matrix: Static Analysis with PHPStan
Annotations
21 errors and 2 warnings
Static Analysis with PHPStan (8.3, prefer-stable):
src/Directives/CanAtLeastDirective.php#L15
Method Yajra\Acl\Directives\CanAtLeastDirective::handle() has parameter $permissions with no value type specified in iterable type array.
|
Static Analysis with PHPStan (8.3, prefer-stable):
src/Directives/RoleDirective.php#L10
Method Yajra\Acl\Directives\RoleDirective::handle() has parameter $role with no value type specified in iterable type array.
|
Static Analysis with PHPStan (8.3, prefer-stable):
src/GateRegistrar.php#L44
Method Yajra\Acl\GateRegistrar::getPermissions() return type with generic class Illuminate\Support\Collection does not specify its types: TKey, TValue
|
Static Analysis with PHPStan (8.3, prefer-stable):
src/GateRegistrar.php#L52
No error to ignore is reported on line 52.
|
Static Analysis with PHPStan (8.3, prefer-stable):
src/Middleware/CanAtLeastMiddleware.php#L15
Method Yajra\Acl\Middleware\CanAtLeastMiddleware::handle() has parameter $permissions with no value type specified in iterable type array.
|
Static Analysis with PHPStan (8.3, prefer-stable):
src/Middleware/CanAtLeastMiddleware.php#L19
Cannot call method canAtLeast() on Illuminate\Foundation\Auth\User|null.
|
Static Analysis with PHPStan (8.3, prefer-stable):
src/Middleware/RoleMiddleware.php#L20
Call to an undefined method Illuminate\Foundation\Auth\User::hasRole().
|
Static Analysis with PHPStan (8.3, prefer-stable):
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.
|
Static Analysis with PHPStan (8.3, prefer-stable):
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
|
Static Analysis with PHPStan (8.3, prefer-stable):
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
|
Static Analysis with PHPStan (8.2, prefer-stable)
The job was canceled because "_8_3_prefer-stable" failed.
|
Static Analysis with PHPStan (8.2, prefer-stable):
src/Directives/CanAtLeastDirective.php#L15
Method Yajra\Acl\Directives\CanAtLeastDirective::handle() has parameter $permissions with no value type specified in iterable type array.
|
Static Analysis with PHPStan (8.2, prefer-stable):
src/Directives/RoleDirective.php#L10
Method Yajra\Acl\Directives\RoleDirective::handle() has parameter $role with no value type specified in iterable type array.
|
Static Analysis with PHPStan (8.2, prefer-stable):
src/GateRegistrar.php#L44
Method Yajra\Acl\GateRegistrar::getPermissions() return type with generic class Illuminate\Support\Collection does not specify its types: TKey, TValue
|
Static Analysis with PHPStan (8.2, prefer-stable):
src/GateRegistrar.php#L52
No error to ignore is reported on line 52.
|
Static Analysis with PHPStan (8.2, prefer-stable):
src/Middleware/CanAtLeastMiddleware.php#L15
Method Yajra\Acl\Middleware\CanAtLeastMiddleware::handle() has parameter $permissions with no value type specified in iterable type array.
|
Static Analysis with PHPStan (8.2, prefer-stable):
src/Middleware/CanAtLeastMiddleware.php#L19
Cannot call method canAtLeast() on Illuminate\Foundation\Auth\User|null.
|
Static Analysis with PHPStan (8.2, prefer-stable):
src/Middleware/RoleMiddleware.php#L20
Call to an undefined method Illuminate\Foundation\Auth\User::hasRole().
|
Static Analysis with PHPStan (8.2, prefer-stable):
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.
|
Static Analysis with PHPStan (8.2, prefer-stable):
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
|
Static Analysis with PHPStan (8.2, prefer-stable):
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
|
Static Analysis with PHPStan (8.3, prefer-stable)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, nick-invision/retry@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Static Analysis with PHPStan (8.3, prefer-stable)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, nick-invision/retry@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|