Skip to content

Commit 8a269c8

Browse files
committed
Moved services for internal build to phpstan.neon
1 parent 5c524c0 commit 8a269c8

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

phpstan.neon

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,20 @@ includes:
66
parameters:
77
excludes_analyse:
88
- */tests/*/data/*
9+
10+
services:
11+
scopeIsInClass:
12+
class: PHPStan\Build\ScopeIsInClassTypeSpecifyingExtension
13+
arguments:
14+
isInMethodName: isInClass
15+
removeNullMethodName: getClassReflection
16+
tags:
17+
- phpstan.typeSpecifier.methodTypeSpecifyingExtension
18+
19+
scopeIsInTrait:
20+
class: PHPStan\Build\ScopeIsInClassTypeSpecifyingExtension
21+
arguments:
22+
isInMethodName: isInTrait
23+
removeNullMethodName: getTraitReflection
24+
tags:
25+
- phpstan.typeSpecifier.methodTypeSpecifyingExtension

rules.neon

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,3 @@ rules:
1717
- PHPStan\Rules\StrictCalls\DynamicCallOnStaticMethodsRule
1818
- PHPStan\Rules\StrictCalls\StrictFunctionCallsRule
1919
- PHPStan\Rules\SwitchConditions\MatchingTypeInSwitchCaseConditionRule
20-
21-
services:
22-
scopeIsInClass:
23-
class: PHPStan\Build\ScopeIsInClassTypeSpecifyingExtension
24-
arguments:
25-
isInMethodName: isInClass
26-
removeNullMethodName: getClassReflection
27-
tags:
28-
- phpstan.typeSpecifier.methodTypeSpecifyingExtension
29-
30-
scopeIsInTrait:
31-
class: PHPStan\Build\ScopeIsInClassTypeSpecifyingExtension
32-
arguments:
33-
isInMethodName: isInTrait
34-
removeNullMethodName: getTraitReflection
35-
tags:
36-
- phpstan.typeSpecifier.methodTypeSpecifyingExtension

0 commit comments

Comments
 (0)