Skip to content

Commit d7798d7

Browse files
committed
Rules about tooWideThrowType moved to level 4
1 parent 1b1da3e commit d7798d7

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

conf/config.level4.neon

+12
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ rules:
2525
- PHPStan\Rules\TooWideTypehints\TooWidePropertyTypeRule
2626
- PHPStan\Rules\Traits\NotAnalysedTraitRule
2727

28+
conditionalTags:
29+
PHPStan\Rules\Exceptions\TooWideFunctionThrowTypeRule:
30+
phpstan.rules.rule: %exceptions.check.tooWideThrowType%
31+
PHPStan\Rules\Exceptions\TooWideMethodThrowTypeRule:
32+
phpstan.rules.rule: %exceptions.check.tooWideThrowType%
33+
2834
parameters:
2935
checkAdvancedIsset: true
3036

@@ -228,6 +234,12 @@ services:
228234
tags:
229235
- phpstan.rules.rule
230236

237+
-
238+
class: PHPStan\Rules\Exceptions\TooWideFunctionThrowTypeRule
239+
240+
-
241+
class: PHPStan\Rules\Exceptions\TooWideMethodThrowTypeRule
242+
231243
-
232244
class: PHPStan\Rules\TooWideTypehints\TooWideMethodReturnTypehintRule
233245
arguments:

conf/config.neon

-10
Original file line numberDiff line numberDiff line change
@@ -205,10 +205,6 @@ conditionalTags:
205205
phpstan.rules.rule: %exceptions.check.missingCheckedExceptionInThrows%
206206
PHPStan\Rules\Exceptions\MissingCheckedExceptionInMethodThrowsRule:
207207
phpstan.rules.rule: %exceptions.check.missingCheckedExceptionInThrows%
208-
PHPStan\Rules\Exceptions\TooWideFunctionThrowTypeRule:
209-
phpstan.rules.rule: %exceptions.check.tooWideThrowType%
210-
PHPStan\Rules\Exceptions\TooWideMethodThrowTypeRule:
211-
phpstan.rules.rule: %exceptions.check.tooWideThrowType%
212208

213209
services:
214210
-
@@ -881,12 +877,6 @@ services:
881877
arguments:
882878
exceptionTypeResolver: @exceptionTypeResolver
883879

884-
-
885-
class: PHPStan\Rules\Exceptions\TooWideFunctionThrowTypeRule
886-
887-
-
888-
class: PHPStan\Rules\Exceptions\TooWideMethodThrowTypeRule
889-
890880
-
891881
class: PHPStan\Rules\Exceptions\TooWideThrowTypeCheck
892882

0 commit comments

Comments
 (0)