Skip to content

Fix phpstan

Fix phpstan #92

Triggered via pull request June 21, 2024 22:11
Status Failure
Total duration 39s
Artifacts

phpstan.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
phpstan: src/Models/Role.php#L187
Access to an undefined property Spatie\Permission\Contracts\Permission::$guard_name.
phpstan: src/Models/Role.php#L188
Access to an undefined property Spatie\Permission\Contracts\Permission::$guard_name.
phpstan: src/Traits/HasPermissions.php (in context of class Spatie/Permission/Models/Permission)#L235
Access to an undefined property Spatie\Permission\Contracts\Permission::$name.
phpstan: src/Traits/HasPermissions.php (in context of class Spatie/Permission/Models/Permission)#L309
Access to an undefined property Spatie\Permission\Contracts\Permission::$roles.
phpstan: src/Traits/HasPermissions.php (in context of class Spatie/Permission/Models/Permission)#L501
Access to an undefined property Spatie\Permission\Contracts\Permission::$name.
phpstan: src/Traits/HasPermissions.php (in context of class Spatie/Permission/Models/Permission)#L519
Access to an undefined property Spatie\Permission\Contracts\Permission|Spatie\Permission\Contracts\Role::$guard_name.
phpstan: src/Traits/HasPermissions.php (in context of class Spatie/Permission/Models/Permission)#L520
Access to an undefined property Spatie\Permission\Contracts\Permission|Spatie\Permission\Contracts\Role::$guard_name.
phpstan: src/Traits/HasPermissions.php (in context of class Spatie/Permission/Models/Role)#L235
Access to an undefined property Spatie\Permission\Contracts\Permission::$name.
phpstan: src/Traits/HasPermissions.php (in context of class Spatie/Permission/Models/Role)#L309
Access to an undefined property Spatie\Permission\Contracts\Permission::$roles.
phpstan: src/Traits/HasPermissions.php (in context of class Spatie/Permission/Models/Role)#L501
Access to an undefined property Spatie\Permission\Contracts\Permission::$name.