Add phpstan level 7(#544)

This commit is contained in:
Saeed Vaziry
2025-03-12 13:31:10 +01:00
committed by GitHub
parent c22bb1fa80
commit 493cbb0849
437 changed files with 4505 additions and 2193 deletions

View File

@ -21,7 +21,7 @@ class AddUser extends Widget implements HasForms
public Project $project;
public ?int $user;
public ?int $user = null;
public function mount(Project $project): void
{
@ -38,7 +38,7 @@ public function form(Form $form): Form
Select::make('user')
->name('user')
->options(fn () => User::query()
->whereNotExists(function ($query) {
->whereNotExists(function ($query): void {
$query->select('user_id')
->from('user_project')
->whereColumn('users.id', 'user_project.user_id')