laravel / nova-issues

556 stars 34 forks source link

phpstan complains about Repeater Field #5792

Closed denmette closed 1 year ago

denmette commented 1 year ago

Description:

When using phpstan with the defaults of larastan I encounter an issue with the Repeater Field. Parameter 1 $repeatables of method Laravel\Nova\Fields\Repeater::repeatables() expects array<int, string>, array<int, CustomRepeater> is given.

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

phpstan.neon

includes:
    - ./vendor/nunomaduro/larastan/extension.neon
parameters:
    paths:
        - app
    level: 9
    ignoreErrors:
    excludePaths:
    checkGenericClassInNonGenericObjectType: false

Just run phpstan

davidhemphill commented 1 year ago

This has been fixed and will be included in the next release. 👍