diff --git a/.github/workflows/code_analysis.yaml b/.github/workflows/code_analysis.yaml index 25513870..f7fca2a2 100644 --- a/.github/workflows/code_analysis.yaml +++ b/.github/workflows/code_analysis.yaml @@ -30,7 +30,7 @@ jobs: - name: 'Class Leak' - run: vendor/bin/class-leak check src tests --skip-path=Fixture --skip-path=Source + run: vendor/bin/class-leak check src tests --skip-path=Fixture --skip-path=Source --skip-type="Rector\\ArgTyper\\PHPStan\\IgnoreAllErrorsExceptArgTyperErrorExtension" - name: 'Tests' @@ -46,7 +46,7 @@ jobs: - name: 'Check Active Classes' - run: vendor/bin/class-leak check src bin tests --ansi --skip-path=Fixture --skip-path=Source + run: vendor/bin/class-leak check src bin tests --ansi --skip-path=Fixture --skip-path=Source --skip-type="Rector\\ArgTyper\\PHPStan\\IgnoreAllErrorsExceptArgTyperErrorExtension" name: ${{ matrix.actions.name }} runs-on: ubuntu-latest diff --git a/config/phpstan-collecting-data.neon b/config/phpstan-collecting-data.neon index 309ff0c8..cf562eac 100644 --- a/config/phpstan-collecting-data.neon +++ b/config/phpstan-collecting-data.neon @@ -14,3 +14,9 @@ parameters: rules: - Rector\ArgTyper\PHPStan\Rule\CollectFuncCallArgTypesRule - Rector\ArgTyper\PHPStan\Rule\CollectCallLikeArgTypesRule + +services: + - + class: Rector\ArgTyper\PHPStan\IgnoreAllErrorsExceptArgTyperErrorExtension + tags: + - phpstan.ignoreErrorExtension diff --git a/src/PHPStan/IgnoreAllErrorsExceptArgTyperErrorExtension.php b/src/PHPStan/IgnoreAllErrorsExceptArgTyperErrorExtension.php new file mode 100644 index 00000000..2b09b5de --- /dev/null +++ b/src/PHPStan/IgnoreAllErrorsExceptArgTyperErrorExtension.php @@ -0,0 +1,19 @@ +