-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpstan.neon.example
57 lines (53 loc) · 1.86 KB
/
phpstan.neon.example
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
46
47
48
49
50
51
52
53
54
55
56
57
parametersSchema:
phpStormMetaPaths: listOf(string())
includes:
- phpstorm-meta.php
services:
cachedParserForMeta:
class: PHPStan\Parser\CachedParser
arguments:
originalParser: @currentPhpVersionRichParser
cachedNodesByStringCountMax: %cache.nodesByStringCountMax%
autowired: false
-
class: PhpStormMetaStan\Service\MetaFileParser
arguments:
parser: @cachedParserForMeta
metaPaths: %phpStormMetaPaths%
-
class: PhpStormMetaStan\Service\OverrideParser
-
class: PhpStormMetaStan\Service\TypeFromMetaResolver
# create a service for each class in your code that has some overrides defined in the meta file
# you need to instantiate a different service class depending on whether those overrides are for static or non-static methods
-
class: PhpStormMetaStan\Service\StaticMethodReturnTypeResolver
tags:
- phpstan.broker.dynamicStaticMethodReturnTypeExtension
arguments:
className: Mage
methodNames:
- helper
- getModel
- getResourceModel
- getResourceHelper
- getResourceSingleton
- getBlockSingleton
- getSingleton
-
class: PhpStormMetaStan\Service\NonStaticMethodReturnTypeResolver
tags:
- phpstan.broker.dynamicMethodReturnTypeExtension
arguments:
className: Mage_Core_Block_Abstract
methodNames:
- helper
-
class: PhpStormMetaStan\Service\NonStaticMethodReturnTypeResolver
tags:
- phpstan.broker.dynamicMethodReturnTypeExtension
arguments:
className: Mage_Core_Model_Layout
methodNames:
- helper
- createBlock