mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-03 23:12:35 +00:00
Add phpstan level 7(#544)
This commit is contained in:
@ -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')
|
||||
|
Reference in New Issue
Block a user