Skip to content

Commit

Permalink
chore(dev): phpstan: replace deprecated `checkGenericClassInNonGeneri…
Browse files Browse the repository at this point in the history
…cObjectType` with `identifier: missingType.generics`

Due to this message from phpstan:
```
⚠️  You're using a deprecated config option checkGenericClassInNonGenericObjectType ⚠️️

It's strongly recommended to remove it from your configuration file
and add the missing generic typehints.

If you want to continue ignoring missing typehints from generics,
add missingType.generics error identifier to your ignoreErrors:

parameters:
        ignoreErrors:
                -
                        identifier: missingType.generics
```
  • Loading branch information
mfn committed May 21, 2024
1 parent b3f5f30 commit 1d4873c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ parameters:
inferPrivatePropertyTypeFromConstructor: true
checkUninitializedProperties: true
checkModelProperties: true
checkGenericClassInNonGenericObjectType: false
ignoreErrors:
-
identifier: missingType.generics
- '/Call to an undefined method Illuminate\\Testing\\TestResponse::(content|getData|getStatusCode)\(\)/'
# tests/Unit/GraphQLTest.php
- '/Call to an undefined method GraphQL\\Type\\Definition\\Type::getFields\(\)/'
Expand Down

0 comments on commit 1d4873c

Please sign in to comment.