Skip to content

Commit

Permalink
Rules about tooWideThrowType moved to level 4
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Sep 30, 2024
1 parent 1b1da3e commit d7798d7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
12 changes: 12 additions & 0 deletions conf/config.level4.neon
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ rules:
- PHPStan\Rules\TooWideTypehints\TooWidePropertyTypeRule
- PHPStan\Rules\Traits\NotAnalysedTraitRule

conditionalTags:
PHPStan\Rules\Exceptions\TooWideFunctionThrowTypeRule:
phpstan.rules.rule: %exceptions.check.tooWideThrowType%
PHPStan\Rules\Exceptions\TooWideMethodThrowTypeRule:
phpstan.rules.rule: %exceptions.check.tooWideThrowType%

parameters:
checkAdvancedIsset: true

Expand Down Expand Up @@ -228,6 +234,12 @@ services:
tags:
- phpstan.rules.rule

-
class: PHPStan\Rules\Exceptions\TooWideFunctionThrowTypeRule

-
class: PHPStan\Rules\Exceptions\TooWideMethodThrowTypeRule

-
class: PHPStan\Rules\TooWideTypehints\TooWideMethodReturnTypehintRule
arguments:
Expand Down
10 changes: 0 additions & 10 deletions conf/config.neon
Original file line number Diff line number Diff line change
Expand Up @@ -205,10 +205,6 @@ conditionalTags:
phpstan.rules.rule: %exceptions.check.missingCheckedExceptionInThrows%
PHPStan\Rules\Exceptions\MissingCheckedExceptionInMethodThrowsRule:
phpstan.rules.rule: %exceptions.check.missingCheckedExceptionInThrows%
PHPStan\Rules\Exceptions\TooWideFunctionThrowTypeRule:
phpstan.rules.rule: %exceptions.check.tooWideThrowType%
PHPStan\Rules\Exceptions\TooWideMethodThrowTypeRule:
phpstan.rules.rule: %exceptions.check.tooWideThrowType%

services:
-
Expand Down Expand Up @@ -881,12 +877,6 @@ services:
arguments:
exceptionTypeResolver: @exceptionTypeResolver

-
class: PHPStan\Rules\Exceptions\TooWideFunctionThrowTypeRule

-
class: PHPStan\Rules\Exceptions\TooWideMethodThrowTypeRule

-
class: PHPStan\Rules\Exceptions\TooWideThrowTypeCheck

Expand Down

0 comments on commit d7798d7

Please sign in to comment.