forked from Catrobat/Catroweb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpstan.neon
22 lines (20 loc) · 906 Bytes
/
phpstan.neon
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
parameters:
level: 6 # 0 is the loosest lvl and 8 is the strictest
paths:
- src
- tests
excludes_analyse:
- migrations
inferPrivatePropertyTypeFromConstructor: true
reportUnmatchedIgnoredErrors: false
ignoreErrors:
# Api Model PhpDoc is kinda broken, but at least autogenerated...
- '#Method App\\Api.*?#'
- '#Return typehint of method App\\Api.*?#'
- '#Parameter .*? of method App\\Api.*?#'
- '#Call to method [a-zA-Z0-9\\_]+\(\) on an unknown class OpenAPI\\Server\\Api\\OpenAPI\\Server\\Model\\[a-zA-Z0-9\\_]+\.#'
# Even if it not is best practice, it works.
- '#Call to static method PHPUnit\\Framework\\Assert::assertTrue\(\) with false .*?#'
# Would be nice, but not worth the amount of work needed to fix this. Maybe in the future ;)
checkMissingIterableValueType: false
checkGenericClassInNonGenericObjectType: false