forked from bitExpert/phpstan-magento
-
Notifications
You must be signed in to change notification settings - Fork 0
/
extension.neon
35 lines (31 loc) · 1.11 KB
/
extension.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:
magento:
checkCollectionViaFactory: true
checkServiceContracts: true
parametersSchema:
magento: structure([
checkCollectionViaFactory: bool()
checkServiceContracts: bool()
])
conditionalTags:
bitExpert\PHPStan\Magento\Rules\AbstractModelRetrieveCollectionViaFactoryRule:
phpstan.rules.rule: %magento.checkCollectionViaFactory%
bitExpert\PHPStan\Magento\Rules\AbstractModelUseServiceContractRule:
phpstan.rules.rule: %magento.checkServiceContracts%
services:
-
class: bitExpert\PHPStan\Magento\Type\ObjectManagerDynamicReturnTypeExtension
tags:
- phpstan.broker.dynamicMethodReturnTypeExtension
-
class: bitExpert\PHPStan\Magento\Reflection\Framework\Session\SessionManagerMagicMethodReflectionExtension
tags:
- phpstan.broker.methodsClassReflectionExtension
-
class: bitExpert\PHPStan\Magento\Reflection\Framework\DataObjectMagicMethodReflectionExtension
tags:
- phpstan.broker.methodsClassReflectionExtension
-
class: bitExpert\PHPStan\Magento\Rules\AbstractModelRetrieveCollectionViaFactoryRule
-
class: bitExpert\PHPStan\Magento\Rules\AbstractModelUseServiceContractRule