FilamentF
Filament9mo ago
Batman

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


$this->modalHeading(fn (User $record): string => __('filament-actions::disable.single.modal.heading', ['label' => $this->record->name]));
Was this page helpful?