Skip to content

Init Package

Init Package #1

Triggered via push May 7, 2024 11:46
Status Failure
Total duration 42s
Artifacts

phpstan.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

10 errors
phpstan: src/Helpers/Helper.php#L12
Call to static method all() on an unknown class Spatie\Permission\Models\Role.
phpstan: src/Livewire/PermissionComponent.php#L39
Property IhabAfia\PermissionsAdmin\Livewire\PermissionComponent::$selectedPermission has unknown class App\Models\Permission as its type.
phpstan: src/Livewire/PermissionComponent.php#L43
Call to static method where() on an unknown class App\Models\Role.
phpstan: src/Livewire/PermissionComponent.php#L49
Call to static method searchPermissions() on an unknown class App\Models\Permission.
phpstan: src/Livewire/PermissionComponent.php#L90
Call to static method create() on an unknown class App\Models\Permission.
phpstan: src/Livewire/PermissionComponent.php#L104
Parameter $role of method IhabAfia\PermissionsAdmin\Livewire\PermissionComponent::updateRole() has invalid type App\Models\Role.
phpstan: src/Livewire/PermissionComponent.php#L106
Access to property $name on an unknown class App\Models\Role.
phpstan: src/Livewire/PermissionComponent.php#L107
Access to property $id on an unknown class App\Models\Role.
phpstan: src/Livewire/PermissionComponent.php#L109
Access to property $id on an unknown class App\Models\Role.
phpstan: src/Livewire/PermissionComponent.php#L109
Access to property $name on an unknown class App\Models\Role.