Skip to content

Commit 488bd88

Browse files
committed
Add the first-class callable rules to the configuration so they can actually be used
Follow-up to #279 Close #330
1 parent 1e355e5 commit 488bd88

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

extension.neon

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -498,6 +498,18 @@ services:
498498
factory: Spaze\PHPStan\Rules\Disallowed\Calls\ShellExecCalls(forbiddenCalls: %disallowedFunctionCalls%)
499499
tags:
500500
- phpstan.rules.rule
501+
-
502+
factory: Spaze\PHPStan\Rules\Disallowed\Calls\FunctionFirstClassCallables(forbiddenCalls: %disallowedFunctionCalls%)
503+
tags:
504+
- phpstan.rules.rule
505+
-
506+
factory: Spaze\PHPStan\Rules\Disallowed\Calls\MethodFirstClassCallables(forbiddenCalls: %disallowedMethodCalls%)
507+
tags:
508+
- phpstan.rules.rule
509+
-
510+
factory: Spaze\PHPStan\Rules\Disallowed\Calls\StaticFirstClassCallables(forbiddenCalls: %disallowedStaticCalls%)
511+
tags:
512+
- phpstan.rules.rule
501513
-
502514
factory: Spaze\PHPStan\Rules\Disallowed\Usages\ConstantUsages(disallowedConstants: %disallowedConstants%)
503515
tags:

0 commit comments

Comments
 (0)