-
Notifications
You must be signed in to change notification settings - Fork 10
/
phpstan.neon
45 lines (34 loc) · 1.23 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
35
36
37
38
39
40
41
42
43
44
45
parameters:
ignoreErrors:
-
identifier: missingType.generics
# Errors related mostly to usage of assert($x instanceof A || $x === null) and similar asserts
- '~Unreachable statement - code above always terminates.~'
doctrine:
objectManagerLoader: tests/object-manager.php
excludePaths:
analyse:
- tests/_output
- tests/_support/_generated
scanDirectories:
- tests/_support
services:
- class: CodeQuality\ObjectIdentityComparisonRule
tags: [ phpstan.rules.rule ]
- class: SkautisAliasesExtension
tags: [ phpstan.broker.propertiesClassReflectionExtension ]
- class: CodeQuality\SkautisWebserviceMagicMethodsExtension
tags: [ phpstan.broker.methodsClassReflectionExtension ]
- class: CodeQuality\QueryBusDynamicReturnTypeProvider
arguments:
- [%rootDir%/../../../app]
- %rootDir%/../../../temp
- '~^.*QueryHandlers\\.*Handler$~'
tags: [ phpstan.broker.dynamicMethodReturnTypeExtension ]
- class: UnusedMoneyMethodResultRule
tags: [ phpstan.rules.rule ]
#
# Dynamic method return types
#
- class: CodeQuality\PresenterDynamicReturnTypeExtension
tags: [ phpstan.broker.dynamicMethodReturnTypeExtension ]