forked from DamienHarper/auditor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpstan.neon
34 lines (30 loc) · 1.53 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
23
24
25
26
27
28
29
30
31
32
33
34
parameters:
level: max
inferPrivatePropertyTypeFromConstructor: true
treatPhpDocTypesAsCertain: false
type_coverage:
return_type: 100
param_type: 100
property_type: 100
constant: 0
paths:
- src
excludePaths:
# TODO: Remove following lines once doctrine/dbal 4.0 is the minimum supported version
- src/Provider/Doctrine/Auditing/DBAL/Middleware/AuditorConnection.php
ignoreErrors:
- identifier: missingType.iterableValue
- identifier: missingType.generics
# false positives
- '~Dead catch - Throwable is never thrown in the try block~'
- '~Parameter \#1 \$className of method Doctrine\\ORM\\EntityManagerInterface\:\:getClassMetadata\(\) expects class-string<object>, string given\.~'
- '~Unable to resolve the template type T in call to method Doctrine\\ORM\\EntityManagerInterface\:\:getClassMetadata\(\)~'
# TODO: Remove following lines once doctrine/dbal 4.0 is the minimum supported version
- message: "~Offset '(major|minor|patch)' does not exist on array~"
reportUnmatched: false
- message: '~Call to private method getServerVersion\(\) of class Doctrine\\DBAL\\Connection.~'
reportUnmatched: false
- message: '~Call to an undefined method Doctrine\\DBAL\\Driver\\Connection::getServerVersion\(\).~'
reportUnmatched: false
- message: '~Call to deprecated method getWrappedConnection\(\) of class Doctrine\\DBAL\\Connection:~'
reportUnmatched: false