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
case 'array':
case 'json':
$realType = 'array<array-key, mixed>';
Alternatively it would be nice to be able to implement this using the Barryvdh\LaravelIdeHelper\Contracts\ModelHookInterface, but I think a public getter to properties in \Barryvdh\LaravelIdeHelper\Console\ModelsCommand is needed.
The text was updated successfully, but these errors were encountered:
Summary
Hi.
Since the higher PHPStan levels wants generics on array types, I was wondering how you would feel about changing array properties on models from
to
This looks like it could be a small change to the ModelsCommand https://github.com/barryvdh/laravel-ide-helper/blob/master/src/Console/ModelsCommand.php#L392 to
Alternatively it would be nice to be able to implement this using the
Barryvdh\LaravelIdeHelper\Contracts\ModelHookInterface
, but I think a public getter to properties in\Barryvdh\LaravelIdeHelper\Console\ModelsCommand
is needed.The text was updated successfully, but these errors were encountered: