You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
151 Parameter #1 $label of method EasyCorp\Bundle\EasyAdminBundle\Config\Action::setLabel() expects (callable(object):
string)|string|Symfony\Contracts\Translation\TranslatableInterface|false|null, Closure(App\Domain\Entity\Lead\Lead): string given.
💡 Type App\Domain\Entity\Lead\Lead of parameter #1 $lead of passed callable needs to be same or wider than parameter type object of accepting callable.
To Reproduce
To Reproduce
Add the setLabel method to an Action.
Use an arrow function (fn) with a strongly typed parameter (Lead) for the setLabel callable.
Describe the bug
PHPStan reports an error when the following code snippet is used:
The error generated is:
To Reproduce
To Reproduce
See
#6599
The text was updated successfully, but these errors were encountered: