Skip to content

Static Analysis

Static Analysis #370

Triggered via schedule August 4, 2024 01:35
Status Failure
Total duration 30s
Artifacts

static-analysis.yml

on: schedule
Matrix: Static Analysis with PHPStan
Fit to window
Zoom out
Zoom in

Annotations

15 errors and 2 warnings
Static Analysis with PHPStan (8.2, prefer-stable): 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)>.
Static Analysis with PHPStan (8.2, prefer-stable): 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)>.
Static Analysis with PHPStan (8.2, prefer-stable): 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)>.
Static Analysis with PHPStan (8.2, prefer-stable): 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.
Static Analysis with PHPStan (8.2, prefer-stable): 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)>.
Static Analysis with PHPStan (8.2, prefer-stable): 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.
Static Analysis with PHPStan (8.2, prefer-stable)
Process completed with exit code 1.
Static Analysis with PHPStan (8.3, prefer-stable)
The job was canceled because "_8_2_prefer-stable" failed.
Static Analysis with PHPStan (8.3, prefer-stable): 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)>.
Static Analysis with PHPStan (8.3, prefer-stable): 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)>.
Static Analysis with PHPStan (8.3, prefer-stable): 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)>.
Static Analysis with PHPStan (8.3, prefer-stable): 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.
Static Analysis with PHPStan (8.3, prefer-stable): 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)>.
Static Analysis with PHPStan (8.3, prefer-stable): 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.
Static Analysis with PHPStan (8.3, prefer-stable)
The operation was canceled.
Static Analysis with PHPStan (8.2, 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/
Static Analysis with PHPStan (8.2, prefer-stable)
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/