forked from Catrobat/Catroweb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpstan.neon
22 lines (20 loc) · 1.05 KB
/
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:
bootstrapFiles:
- config/bootstrap_test.php
level: 6 # 0 is the loosest lvl and 8 is the strictest
paths:
- src
- config
- tests
inferPrivatePropertyTypeFromConstructor: true
reportUnmatchedIgnoredErrors: false
ignoreErrors:
# Even if it not is best practice, it works.
- '#Call to static method PHPUnit\\Framework\\Assert::assertTrue\(\) with false .*?#'
# ByPasFinal and phpstan seems to be having a problem currently
- '#Return type of call to method PHPUnit\\Framework\\MockObject\\MockBuilder<[a-zA-Z0-9\\_]+>::getMock(ForAbstractClass)?\(\) contains unresolvable type\.#'
- '#Return type of call to method PHPUnit\\Framework\\TestCase::createMock\(\) contains unresolvable type\.#'
- '#Return type of call to method PHPUnit\\Framework\\TestCase::createTestProxy\(\) contains unresolvable type\.#'
# Would be nice, but not worth the amount of work needed to fix this. Maybe in the future ;)
checkMissingIterableValueType: false
checkGenericClassInNonGenericObjectType: false