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
So basically param_lookup considered an additional parameter, coming from the parent implementation, while params only had the current implementation's parameters.
Maybe it shouldn't be updated directly, but rather via two methods FunctionLikeStorage->setParams() and addParam() so that param_lookup can be maintained directly by FunctionLikeStorage.
I stumbled upon the following error in the context of
psalm-plugin-laravel
development (see psalm/psalm-plugin-laravel#160):This is the corresponding code location:
psalm/src/Psalm/Internal/Analyzer/FunctionLikeAnalyzer.php
Lines 814 to 822 in bee4e83
Here's what the variable state looked like at the crash:
So basically
param_lookup
considered an additional parameter, coming from the parent implementation, whileparams
only had the current implementation's parameters.The causing code was this stub for Laravel:
The real
HasFactory
trait in Laravel 8 looks like this though:I tried to "overwrite" the spread
$parameters
to determine the return type, but unfortunately Psalm crashed as a consequence.The text was updated successfully, but these errors were encountered: