Add make method annotation to adhere to parameters overwrite
Closed this issue · 6 comments
When using PHPStorm or PHPStan the parameters to the Breadcrumbs::make($request, $this)
are not sensed correctly.
Furthermore PHPStan breaks due to inheritance with Laravel\Nova\Fields\Field
:
Static method Laravel\Nova\Fields\Field::make() invoked with 0 parameters, 1-3 required.
Fix
Overwrite the @method annotation.
/**
* @method static static make(NovaRequest $request, Resource $resource)
**/
I don't use either, can you check if the changes in main are fixing the issue for you? Then ill do a release.
@ianrobertsFF Thanks! I was just generating the Pull request.
And Yes! I did it on my local after composer update, it works!
Wunderbar, ill do the release now
If you like, do the indentation and rm additional empty line ;-)
👍
Haha trying to use it on mobile right now, I've fixed the styling, but I wont do another release just for that, but it'll be in the next one.
Edit: For clarity the fix is in 1.0.4, but the styling changes to the annotation wont be
Great! nothing to worry about. Thanks for the quick reaction.
Cheers!