Static Analysis #372
Annotations
7 errors and 2 warnings
src/Models/Permission.php#L108
Method Yajra\Acl\Models\Permission::users() should return Illuminate\Database\Eloquent\Relations\BelongsToMany<Illuminate\Foundation\Auth\User> but returns Illuminate\Database\Eloquent\Relations\BelongsToMany<TRelatedModel of Illuminate\Database\Eloquent\Model, $this(Yajra\Acl\Models\Permission)>.
|
src/Models/Role.php#L51
Method Yajra\Acl\Models\Role::users() should return Illuminate\Database\Eloquent\Relations\BelongsToMany<Illuminate\Foundation\Auth\User> but returns Illuminate\Database\Eloquent\Relations\BelongsToMany<TRelatedModel of Illuminate\Database\Eloquent\Model, $this(Yajra\Acl\Models\Role)>.
|
src/Traits/InteractsWithPermission.php (in context of class Yajra/Acl/Models/Role)#L75
Method Yajra\Acl\Models\Role::permissions() should return Illuminate\Database\Eloquent\Relations\BelongsToMany<Yajra\Acl\Models\Permission> but returns Illuminate\Database\Eloquent\Relations\BelongsToMany<TRelatedModel of Illuminate\Database\Eloquent\Model, $this(Yajra\Acl\Models\Role)>.
|
src/Traits/InteractsWithPermission.php (in context of class Yajra/Acl/Models/Role)#L75
Parameter #1 $related of method Illuminate\Database\Eloquent\Model::belongsToMany() expects class-string<Illuminate\Database\Eloquent\Model>, class-string given.
|
src/Traits/InteractsWithRole.php (in context of class Yajra/Acl/Models/Permission)#L85
Method Yajra\Acl\Models\Permission::roles() should return Illuminate\Database\Eloquent\Relations\BelongsToMany<Yajra\Acl\Models\Role> but returns Illuminate\Database\Eloquent\Relations\BelongsToMany<TRelatedModel of Illuminate\Database\Eloquent\Model, $this(Yajra\Acl\Models\Permission)>.
|
src/Traits/InteractsWithRole.php (in context of class Yajra/Acl/Models/Permission)#L85
Parameter #1 $related of method Illuminate\Database\Eloquent\Model::belongsToMany() expects class-string<Illuminate\Database\Eloquent\Model>, class-string given.
|
|
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/
|
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/checkout@v2, nick-invision/retry@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
This job failed
Loading