Skip to content

Commit 607dcf8

Browse files
committed
use PreferGenericTemplateOnSameUnionTypeRule from symplify/phpstan-rules
Rule extracted to symplify/phpstan-rules 14.18.2; registered in the rector-rules set, which phpstan.neon already includes, so enforcement is preserved.
1 parent b17ebfe commit 607dcf8

6 files changed

Lines changed: 1 addition & 203 deletions

File tree

‎composer.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
"shipmonk/dead-code-detector": "^1.4",
5353
"symfony/process": "^8.1",
5454
"symplify/easy-coding-standard": "^13.3.5",
55-
"symplify/phpstan-rules": "^14.18",
55+
"symplify/phpstan-rules": "^14.18.2",
5656
"tomasvotruba/class-leak": "^2.3.4",
5757
"tomasvotruba/fast-unit": "^0.1",
5858
"tomasvotruba/type-coverage": "^2.3.6",

‎phpstan.neon‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ includes:
44
rules:
55
- Rector\Utils\PHPStan\Rule\RegisterRelatedPolyfillRectorRule
66
- Rector\Utils\PHPStan\Rule\NoScopeFetchBeforeCheapGuardRule
7-
- Rector\Utils\PHPStan\Rule\PreferGenericTemplateOnSameUnionTypeRule
87

98
parameters:
109
level: 8

‎utils/phpstan/src/Rule/PreferGenericTemplateOnSameUnionTypeRule.php‎

Lines changed: 0 additions & 121 deletions
This file was deleted.

‎utils/phpstan/tests/Rule/PreferGenericTemplateOnSameUnionTypeRule/PreferGenericTemplateOnSameUnionTypeRuleTest.php‎

Lines changed: 0 additions & 32 deletions
This file was deleted.

‎utils/phpstan/tests/Rule/PreferGenericTemplateOnSameUnionTypeRule/Source/SameUnionParamAndReturn.php‎

Lines changed: 0 additions & 16 deletions
This file was deleted.

‎utils/phpstan/tests/Rule/PreferGenericTemplateOnSameUnionTypeRule/Source/SkipGenericTemplate.php‎

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)