forked from oroinc/phpstan-rules
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathextension.neon
93 lines (81 loc) · 3.25 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
includes:
- ../../phpstan/phpstan-doctrine/extension.neon
services:
-
class: Oro\Rules\Methods\QueryBuilderInjectionRule
arguments:
checkThisOnly: %checkThisOnly%
trustedData: %sql_injection_testing.trusted_data%
tags:
- phpstan.rules.rule
-
class: Oro\Rules\Types\RequestGetSessionTypeExtension
tags:
- phpstan.broker.dynamicMethodReturnTypeExtension
-
class: Oro\Rules\Types\EntityManagerReturnTypeExtension
arguments:
supportedClass: Doctrine\ORM\EntityManagerInterface
tags:
- phpstan.broker.dynamicMethodReturnTypeExtension
-
class: Oro\Rules\Types\EntityManagerReturnTypeExtension
arguments:
supportedClass: Doctrine\Persistence\ManagerRegistry
tags:
- phpstan.broker.dynamicMethodReturnTypeExtension
-
class: Oro\Rules\Types\ManagerRegistryEMReturnTypeExtension
arguments:
supportedClass: Doctrine\Persistence\ManagerRegistry
tags:
- phpstan.broker.dynamicMethodReturnTypeExtension
-
class: Oro\Rules\Types\ObjectRepositoryReturnTypeExtension
arguments:
supportedClass: Doctrine\ORM\EntityRepository
tags:
- phpstan.broker.dynamicMethodReturnTypeExtension
persistenceManagerRegistryGetRepository:
class: Oro\Rules\Types\GetRepositoryDynamicReturnTypeExtension
tags:
- phpstan.broker.dynamicMethodReturnTypeExtension
arguments:
managerClass: Doctrine\Persistence\ManagerRegistry
persistenceObjectManagerGetRepository:
class: Oro\Rules\Types\GetRepositoryDynamicReturnTypeExtension
tags:
- phpstan.broker.dynamicMethodReturnTypeExtension
arguments:
managerClass: Doctrine\Persistence\ObjectManager
managerRegistryGetRepository:
class: Oro\Rules\Types\GetRepositoryDynamicReturnTypeExtension
tags:
- phpstan.broker.dynamicMethodReturnTypeExtension
arguments:
managerClass: Doctrine\Persistence\ManagerRegistry
objectManagerGetRepository:
class: Oro\Rules\Types\GetRepositoryDynamicReturnTypeExtension
tags:
- phpstan.broker.dynamicMethodReturnTypeExtension
arguments:
managerClass: Doctrine\Persistence\ObjectManager
# Should be uncommented after existing problems fixed
#-
#class: Oro\Rules\ValidExceptionCatchRule
#tags:
#- phpstan.rules.rule
parametersSchema:
sql_injection_testing: structure([
trusted_data: structure([
variables: arrayOf(arrayOf(arrayOf(bool())))
properties: arrayOf(arrayOf(arrayOf(bool())))
safe_static_methods: arrayOf(arrayOf(bool()))
safe_methods: arrayOf(arrayOf(anyOf(bool(), arrayOf(int()))))
check_static_methods_safety: arrayOf(arrayOf(anyOf(bool(), arrayOf(int()))))
check_methods_safety: arrayOf(arrayOf(anyOf(bool(), arrayOf(int()))))
check_methods: arrayOf(arrayOf(anyOf(bool(), arrayOf(int()))))
clear_static_methods: arrayOf(arrayOf(bool()))
clear_methods: arrayOf(arrayOf(bool()))
])
])