laravel / nova-issues

554 stars 34 forks source link

Add phpdoc for Laravel\Nova\Fields\Tag::make() method #6505

Closed VGirol closed 2 months ago

VGirol commented 2 months ago

Description:

When using the Laravel\Nova\Fields\Tag::make() method, Phpstan (with Larastan) throws this error :

Parameter #3 $resolveCallback of static method Laravel\Nova\Fields\Field::make() expects (callable(): mixed)|null, 'App\Domain\Users\Nova\Academy' given.

By adding this phpdoc on top of the Laravel\Nova\Fields\Tag class, the error disappears :

/**

Detailed steps to reproduce the issue on a fresh Nova installation:

github-actions[bot] commented 2 months ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.