phpstan 'Access to an undefined property'

Learning phpstan. I am trying to figure out what the correct way to handle phpstan errors on some things are. Is there a good way to define this or do you just ignore the line.
message: '#^Access to an undefined property Closure\|Illuminate\\Database\\Eloquent\\Model\:\:\$name\.$#'
identifier: property.notFound
count: 1
path: app/Filament/Resources/UserResource/Actions/Table/DisableAction.php
message: '#^Access to an undefined property Closure\|Illuminate\\Database\\Eloquent\\Model\:\:\$name\.$#'
identifier: property.notFound
count: 1
path: app/Filament/Resources/UserResource/Actions/Table/DisableAction.php
$this->modalHeading(fn (User $record): string => __('filament-actions::disable.single.modal.heading', ['label' => $this->record->name]));
$this->modalHeading(fn (User $record): string => __('filament-actions::disable.single.modal.heading', ['label' => $this->record->name]));
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?