Skip to content

Commit 63cd01d

Browse files
committed
Disallow debug functions usage
1 parent 0886028 commit 63cd01d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

rules.neon

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ parameters:
1010
loadComponentExistsClassRule: true
1111
controllerMethodMustBeUsedRule: true
1212
disallowDebugFunctionsRule: true
13+
disallowDebugStaticCallRule: true
1314
parametersSchema:
1415
cakeDC: structure([
1516
addAssociationExistsTableClassRule: anyOf(bool(), arrayOf(bool()))
@@ -22,6 +23,7 @@ parametersSchema:
2223
loadComponentExistsClassRule: anyOf(bool(), arrayOf(bool()))
2324
controllerMethodMustBeUsedRule: anyOf(bool(), arrayOf(bool()))
2425
disallowDebugFunctionsRule: anyOf(bool(), arrayOf(bool()))
26+
disallowDebugStaticCallRule: anyOf(bool(), arrayOf(bool()))
2527
])
2628

2729
conditionalTags:
@@ -47,6 +49,8 @@ conditionalTags:
4749
phpstan.rules.rule: %cakeDC.ormSelectQueryFindMatchOptionsTypesRule%
4850
CakeDC\PHPStan\Rule\Debug\DisallowDebugFunctionsRule:
4951
phpstan.rules.rule: %cakeDC.disallowDebugFunctionsRule%
52+
CakeDC\PHPStan\Rule\Debug\DisallowDebugStaticCallRule:
53+
phpstan.rules.rule: %cakeDC.disallowDebugStaticCallRule%
5054

5155
services:
5256
-
@@ -71,3 +75,5 @@ services:
7175
class: CakeDC\PHPStan\Rule\Model\OrmSelectQueryFindMatchOptionsTypesRule
7276
-
7377
class: CakeDC\PHPStan\Rule\Debug\DisallowDebugFunctionsRule
78+
-
79+
class: CakeDC\PHPStan\Rule\Debug\DisallowDebugStaticCallRule

0 commit comments

Comments
 (0)