Skip to content

Commit

Permalink
Add PHPStan check for iterable types
Browse files Browse the repository at this point in the history
  • Loading branch information
franmomu committed Apr 30, 2022
1 parent dd6861f commit c532cf0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,13 @@ parameters:
- tests/PersistentCollections/
- tests/Proxies/
treatPhpDocTypesAsCertain: false
ignoreErrors:
# Ignore typing providers in tests
- '#^Method Doctrine\\ODM\\MongoDB\\Tests\\[^:]+(Test)::(get\w+|data\w+|provide\w+)\(\) return type has no value type specified in iterable type (array|iterable)\.#'
# To be removed when reaching phpstan level 6
checkMissingVarTagTypehint: true
checkMissingTypehints: true
checkMissingIterableValueType: true

# To be removed when reaching phpstan level 6
rules:
Expand Down

0 comments on commit c532cf0

Please sign in to comment.