From 86cff566c8350f8a05e639ba12bd9ac7a0d64d19 Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Tue, 6 Oct 2026 10:45:03 +0200 Subject: [PATCH 1/2] Replace tomasvotruba/unused-public with shipmonk/dead-code-detector --- composer.json | 2 +- phpstan-dead-code-baseline.neon | 841 ++++++++++++++++++++++++++++++++ phpstan.neon | 1 + 3 files changed, 843 insertions(+), 1 deletion(-) create mode 100644 phpstan-dead-code-baseline.neon diff --git a/composer.json b/composer.json index e5922475..1111bb88 100644 --- a/composer.json +++ b/composer.json @@ -15,12 +15,12 @@ "rector/jack": "^1.0", "rector/rector-src": "dev-main", "rector/swiss-knife": "^2.6", + "shipmonk/dead-code-detector": "^1.4", "symplify/easy-coding-standard": "^13.2", "symplify/phpstan-extensions": "^12.0", "symplify/phpstan-rules": "^14.13.1", "tomasvotruba/class-leak": "^2.1", "tomasvotruba/type-coverage": "^2.3", - "tomasvotruba/unused-public": "^2.2", "tracy/tracy": "^2.12" }, "autoload": { diff --git a/phpstan-dead-code-baseline.neon b/phpstan-dead-code-baseline.neon new file mode 100644 index 00000000..5c3208d1 --- /dev/null +++ b/phpstan-dead-code-baseline.neon @@ -0,0 +1,841 @@ +parameters: + ignoreErrors: + - + message: '#^Unused Rector\\PHPUnit\\AnnotationsToAttributes\\NodeFactory\\RequiresAttributeFactory\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/AnnotationsToAttributes/NodeFactory/RequiresAttributeFactory.php + + - + message: '#^Unused Rector\\PHPUnit\\AnnotationsToAttributes\\Rector\\ClassMethod\\DataProviderAnnotationToAttributeRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/AnnotationsToAttributes/Rector/ClassMethod/DataProviderAnnotationToAttributeRector.php + + - + message: '#^Unused Rector\\PHPUnit\\AnnotationsToAttributes\\Rector\\ClassMethod\\DependsAnnotationWithValueToAttributeRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/AnnotationsToAttributes/Rector/ClassMethod/DependsAnnotationWithValueToAttributeRector.php + + - + message: '#^Unused Rector\\PHPUnit\\AnnotationsToAttributes\\Rector\\ClassMethod\\TestWithAnnotationToAttributeRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/AnnotationsToAttributes/Rector/ClassMethod/TestWithAnnotationToAttributeRector.php + + - + message: '#^Unused Rector\\PHPUnit\\AnnotationsToAttributes\\Rector\\Class_\\AnnotationWithValueToAttributeRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/AnnotationsToAttributes/Rector/Class_/AnnotationWithValueToAttributeRector.php + + - + message: '#^Unused Rector\\PHPUnit\\AnnotationsToAttributes\\Rector\\Class_\\CoversAnnotationWithValueToAttributeRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/AnnotationsToAttributes/Rector/Class_/CoversAnnotationWithValueToAttributeRector.php + + - + message: '#^Unused Rector\\PHPUnit\\AnnotationsToAttributes\\Rector\\Class_\\RequiresAnnotationWithValueToAttributeRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/AnnotationsToAttributes/Rector/Class_/RequiresAnnotationWithValueToAttributeRector.php + + - + message: '#^Unused Rector\\PHPUnit\\AnnotationsToAttributes\\Rector\\Class_\\TicketAnnotationToAttributeRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/AnnotationsToAttributes/Rector/Class_/TicketAnnotationToAttributeRector.php + + - + message: '#^Unused Rector\\PHPUnit\\CodeQuality\\NodeAnalyser\\AssertHasKeyMatcher\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/CodeQuality/NodeAnalyser/AssertHasKeyMatcher.php + + - + message: '#^Unused Rector\\PHPUnit\\CodeQuality\\NodeAnalyser\\AssertMethodAnalyzer\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/CodeQuality/NodeAnalyser/AssertMethodAnalyzer.php + + - + message: '#^Unused Rector\\PHPUnit\\CodeQuality\\NodeAnalyser\\AssignedMocksCollector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/CodeQuality/NodeAnalyser/AssignedMocksCollector.php + + - + message: '#^Unused Rector\\PHPUnit\\CodeQuality\\NodeAnalyser\\ClosureUsesResolver\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/CodeQuality/NodeAnalyser/ClosureUsesResolver.php + + - + message: '#^Unused Rector\\PHPUnit\\CodeQuality\\NodeAnalyser\\DoctrineEntityDocumentAnalyser\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/CodeQuality/NodeAnalyser/DoctrineEntityDocumentAnalyser.php + + - + message: '#^Unused Rector\\PHPUnit\\CodeQuality\\NodeAnalyser\\MockObjectExprDetector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/CodeQuality/NodeAnalyser/MockObjectExprDetector.php + + - + message: '#^Unused Rector\\PHPUnit\\CodeQuality\\NodeAnalyser\\MockObjectPropertyDetector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/CodeQuality/NodeAnalyser/MockObjectPropertyDetector.php + + - + message: '#^Unused Rector\\PHPUnit\\CodeQuality\\NodeAnalyser\\MockedMethodTypeResolver\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/CodeQuality/NodeAnalyser/MockedMethodTypeResolver.php + + - + message: '#^Unused Rector\\PHPUnit\\CodeQuality\\NodeAnalyser\\NullableObjectAssignCollector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/CodeQuality/NodeAnalyser/NullableObjectAssignCollector.php + + - + message: '#^Unused Rector\\PHPUnit\\CodeQuality\\NodeAnalyser\\ParentCallDetector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/CodeQuality/NodeAnalyser/ParentCallDetector.php + + - + message: '#^Unused Rector\\PHPUnit\\CodeQuality\\NodeAnalyser\\SetUpAssignedMockTypesResolver\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/CodeQuality/NodeAnalyser/SetUpAssignedMockTypesResolver.php + + - + message: '#^Unused Rector\\PHPUnit\\CodeQuality\\NodeAnalyser\\StubPropertyResolver\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/CodeQuality/NodeAnalyser/StubPropertyResolver.php + + - + message: '#^Unused Rector\\PHPUnit\\CodeQuality\\NodeFactory\\FromBinaryAndAssertExpressionsFactory\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/CodeQuality/NodeFactory/FromBinaryAndAssertExpressionsFactory.php + + - + message: '#^Unused Rector\\PHPUnit\\CodeQuality\\NodeFinder\\PropertyFetchUsageFinder\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/CodeQuality/NodeFinder/PropertyFetchUsageFinder.php + + - + message: '#^Unused Rector\\PHPUnit\\CodeQuality\\NodeFinder\\VariableFinder\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/CodeQuality/NodeFinder/VariableFinder.php + + - + message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\CallLike\\DirectInstanceOverMockArgRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/CodeQuality/Rector/CallLike/DirectInstanceOverMockArgRector.php + + - + message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\ClassMethod\\AddInstanceofAssertForNullableArgumentRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/CodeQuality/Rector/ClassMethod/AddInstanceofAssertForNullableArgumentRector.php + + - + message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\ClassMethod\\AddInstanceofAssertForNullableInstanceRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/CodeQuality/Rector/ClassMethod/AddInstanceofAssertForNullableInstanceRector.php + + - + message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\ClassMethod\\AddKeysExistsAssertForKeyUseRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/CodeQuality/Rector/ClassMethod/AddKeysExistsAssertForKeyUseRector.php + + - + message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\ClassMethod\\AssertClassToThisAssertRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/CodeQuality/Rector/ClassMethod/AssertClassToThisAssertRector.php + + - + message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\ClassMethod\\BareCreateMockAssignToDirectUseRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/CodeQuality/Rector/ClassMethod/BareCreateMockAssignToDirectUseRector.php + + - + message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\ClassMethod\\ChangeMockObjectReturnUnionToIntersectionRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/CodeQuality/Rector/ClassMethod/ChangeMockObjectReturnUnionToIntersectionRector.php + + - + message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\ClassMethod\\DataProviderArrayItemsNewLinedRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/CodeQuality/Rector/ClassMethod/DataProviderArrayItemsNewLinedRector.php + + - + message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\ClassMethod\\EntityDocumentCreateMockToDirectNewRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/CodeQuality/Rector/ClassMethod/EntityDocumentCreateMockToDirectNewRector.php + + - + message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\ClassMethod\\NoSetupWithParentCallOverrideRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/CodeQuality/Rector/ClassMethod/NoSetupWithParentCallOverrideRector.php + + - + message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\ClassMethod\\RemoveEmptyTestMethodRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/CodeQuality/Rector/ClassMethod/RemoveEmptyTestMethodRector.php + + - + message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\ClassMethod\\RemoveStandaloneCreateMockRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/CodeQuality/Rector/ClassMethod/RemoveStandaloneCreateMockRector.php + + - + message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\ClassMethod\\ReplaceTestAnnotationWithPrefixedFunctionRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/CodeQuality/Rector/ClassMethod/ReplaceTestAnnotationWithPrefixedFunctionRector.php + + - + message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\Class_\\AddIntersectionParamToMockObjectParamRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/CodeQuality/Rector/Class_/AddIntersectionParamToMockObjectParamRector.php + + - + message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\Class_\\AddIntersectionVarToMockObjectPropertyRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/CodeQuality/Rector/Class_/AddIntersectionVarToMockObjectPropertyRector.php + + - + message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\Class_\\AddParamTypeFromDependsRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/CodeQuality/Rector/Class_/AddParamTypeFromDependsRector.php + + - + message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\Class_\\AddReturnTypeToDependedRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/CodeQuality/Rector/Class_/AddReturnTypeToDependedRector.php + + - + message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\Class_\\AddSeeTestAnnotationRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/CodeQuality/Rector/Class_/AddSeeTestAnnotationRector.php + + - + message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\Class_\\AddStubIntersectionVarToStubPropertyRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/CodeQuality/Rector/Class_/AddStubIntersectionVarToStubPropertyRector.php + + - + message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\Class_\\ConstructClassMethodToSetUpTestCaseRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/CodeQuality/Rector/Class_/ConstructClassMethodToSetUpTestCaseRector.php + + - + message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\Class_\\InlineStubPropertyToCreateStubMethodCallRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/CodeQuality/Rector/Class_/InlineStubPropertyToCreateStubMethodCallRector.php + + - + message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\Class_\\NarrowUnusedSetUpDefinedPropertyRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/CodeQuality/Rector/Class_/NarrowUnusedSetUpDefinedPropertyRector.php + + - + message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\Class_\\PreferPHPUnitSelfCallRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/CodeQuality/Rector/Class_/PreferPHPUnitSelfCallRector.php + + - + message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\Class_\\PreferPHPUnitThisCallRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/CodeQuality/Rector/Class_/PreferPHPUnitThisCallRector.php + + - + message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\Class_\\PreferTestsWithCamelCaseRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/CodeQuality/Rector/Class_/PreferTestsWithCamelCaseRector.php + + - + message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\Class_\\PreferTestsWithSnakeCaseRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/CodeQuality/Rector/Class_/PreferTestsWithSnakeCaseRector.php + + - + message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\Class_\\RemoveNeverUsedMockPropertyRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/CodeQuality/Rector/Class_/RemoveNeverUsedMockPropertyRector.php + + - + message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\Class_\\SingleMockPropertyTypeRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/CodeQuality/Rector/Class_/SingleMockPropertyTypeRector.php + + - + message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\Class_\\SuffixMockObjectPropertyRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/CodeQuality/Rector/Class_/SuffixMockObjectPropertyRector.php + + - + message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\Class_\\TestWithToDataProviderRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/CodeQuality/Rector/Class_/TestWithToDataProviderRector.php + + - + message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\Class_\\TypeWillReturnCallableArrowFunctionRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/CodeQuality/Rector/Class_/TypeWillReturnCallableArrowFunctionRector.php + + - + message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\Class_\\VoidMethodWithCallbackToWillReturnCallbackRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/CodeQuality/Rector/Class_/VoidMethodWithCallbackToWillReturnCallbackRector.php + + - + message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\Class_\\YieldDataProviderRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/CodeQuality/Rector/Class_/YieldDataProviderRector.php + + - + message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\Expression\\AssertArrayCastedObjectToAssertSameRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/CodeQuality/Rector/Expression/AssertArrayCastedObjectToAssertSameRector.php + + - + message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\Expression\\DecorateWillReturnMapWithExpectsMockRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/CodeQuality/Rector/Expression/DecorateWillReturnMapWithExpectsMockRector.php + + - + message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\FuncCall\\AssertFuncCallToPHPUnitAssertRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/CodeQuality/Rector/FuncCall/AssertFuncCallToPHPUnitAssertRector.php + + - + message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\MethodCall\\AssertCompareOnCountableWithMethodToAssertCountRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/CodeQuality/Rector/MethodCall/AssertCompareOnCountableWithMethodToAssertCountRector.php + + - + message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\MethodCall\\AssertComparisonToSpecificMethodRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/CodeQuality/Rector/MethodCall/AssertComparisonToSpecificMethodRector.php + + - + message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\MethodCall\\AssertEmptyNullableObjectToAssertInstanceofRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/CodeQuality/Rector/MethodCall/AssertEmptyNullableObjectToAssertInstanceofRector.php + + - + message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\MethodCall\\AssertEqualsOrAssertSameFloatParameterToSpecificMethodsTypeRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/CodeQuality/Rector/MethodCall/AssertEqualsOrAssertSameFloatParameterToSpecificMethodsTypeRector.php + + - + message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\MethodCall\\AssertEqualsToSameRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/CodeQuality/Rector/MethodCall/AssertEqualsToSameRector.php + + - + message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\MethodCall\\AssertFalseStrposToContainsRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/CodeQuality/Rector/MethodCall/AssertFalseStrposToContainsRector.php + + - + message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\MethodCall\\AssertInstanceOfComparisonRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/CodeQuality/Rector/MethodCall/AssertInstanceOfComparisonRector.php + + - + message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\MethodCall\\AssertIssetToSpecificMethodRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/CodeQuality/Rector/MethodCall/AssertIssetToSpecificMethodRector.php + + - + message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\MethodCall\\AssertNotOperatorRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/CodeQuality/Rector/MethodCall/AssertNotOperatorRector.php + + - + message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\MethodCall\\AssertSameBoolNullToSpecificMethodRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/CodeQuality/Rector/MethodCall/AssertSameBoolNullToSpecificMethodRector.php + + - + message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\MethodCall\\AssertSameTrueFalseToAssertTrueFalseRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/CodeQuality/Rector/MethodCall/AssertSameTrueFalseToAssertTrueFalseRector.php + + - + message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\MethodCall\\AssertThatToDirectAssertRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/CodeQuality/Rector/MethodCall/AssertThatToDirectAssertRector.php + + - + message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\MethodCall\\AssertTrueFalseToSpecificMethodRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/CodeQuality/Rector/MethodCall/AssertTrueFalseToSpecificMethodRector.php + + - + message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\MethodCall\\CallbackSingleAssertToSimplerRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/CodeQuality/Rector/MethodCall/CallbackSingleAssertToSimplerRector.php + + - + message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\MethodCall\\FlipAssertRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/CodeQuality/Rector/MethodCall/FlipAssertRector.php + + - + message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\MethodCall\\MatchAssertSameExpectedTypeRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/CodeQuality/Rector/MethodCall/MatchAssertSameExpectedTypeRector.php + + - + message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\MethodCall\\MergeWithCallableAndWillReturnRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/CodeQuality/Rector/MethodCall/MergeWithCallableAndWillReturnRector.php + + - + message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\MethodCall\\NarrowIdenticalWithConsecutiveRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/CodeQuality/Rector/MethodCall/NarrowIdenticalWithConsecutiveRector.php + + - + message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\MethodCall\\NarrowSingleWillReturnCallbackRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/CodeQuality/Rector/MethodCall/NarrowSingleWillReturnCallbackRector.php + + - + message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\MethodCall\\RemoveExpectAnyFromMockRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/CodeQuality/Rector/MethodCall/RemoveExpectAnyFromMockRector.php + + - + message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\MethodCall\\ScalarArgumentToExpectedParamTypeRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/CodeQuality/Rector/MethodCall/ScalarArgumentToExpectedParamTypeRector.php + + - + message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\MethodCall\\SimplerWithIsInstanceOfRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/CodeQuality/Rector/MethodCall/SimplerWithIsInstanceOfRector.php + + - + message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\MethodCall\\SingleWithConsecutiveToWithRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/CodeQuality/Rector/MethodCall/SingleWithConsecutiveToWithRector.php + + - + message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\MethodCall\\StringCastAssertStringContainsStringRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/CodeQuality/Rector/MethodCall/StringCastAssertStringContainsStringRector.php + + - + message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\MethodCall\\UseSpecificWillMethodRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/CodeQuality/Rector/MethodCall/UseSpecificWillMethodRector.php + + - + message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\MethodCall\\UseSpecificWithMethodRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/CodeQuality/Rector/MethodCall/UseSpecificWithMethodRector.php + + - + message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\MethodCall\\WillReturnCallbackFallbackToReturnFalseRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/CodeQuality/Rector/MethodCall/WillReturnCallbackFallbackToReturnFalseRector.php + + - + message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\MethodCall\\WithCallbackIdenticalToStandaloneAssertsRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/CodeQuality/Rector/MethodCall/WithCallbackIdenticalToStandaloneAssertsRector.php + + - + message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\StmtsAwareInterface\\DeclareStrictTypesTestsRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/CodeQuality/Rector/StmtsAwareInterface/DeclareStrictTypesTestsRector.php + + - + message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Reflection\\MethodParametersAndReturnTypesResolver\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/CodeQuality/Reflection/MethodParametersAndReturnTypesResolver.php + + - + message: '#^Unused Rector\\PHPUnit\\CodeQuality\\TypeAnalyzer\\MethodCallParameterTypeResolver\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/CodeQuality/TypeAnalyzer/MethodCallParameterTypeResolver.php + + - + message: '#^Unused Rector\\PHPUnit\\PHPUnit100\\NodeFactory\\WillReturnCallbackFactory\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/PHPUnit100/NodeFactory/WillReturnCallbackFactory.php + + - + message: '#^Unused Rector\\PHPUnit\\PHPUnit100\\Rector\\Class_\\AddProphecyTraitRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/PHPUnit100/Rector/Class_/AddProphecyTraitRector.php + + - + message: '#^Unused Rector\\PHPUnit\\PHPUnit100\\Rector\\Class_\\ParentTestClassConstructorRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/PHPUnit100/Rector/Class_/ParentTestClassConstructorRector.php + + - + message: '#^Unused Rector\\PHPUnit\\PHPUnit100\\Rector\\Class_\\PublicDataProviderClassMethodRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/PHPUnit100/Rector/Class_/PublicDataProviderClassMethodRector.php + + - + message: '#^Unused Rector\\PHPUnit\\PHPUnit100\\Rector\\Class_\\StaticDataProviderClassMethodRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/PHPUnit100/Rector/Class_/StaticDataProviderClassMethodRector.php + + - + message: '#^Unused Rector\\PHPUnit\\PHPUnit100\\Rector\\MethodCall\\PropertyExistsWithoutAssertRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/PHPUnit100/Rector/MethodCall/PropertyExistsWithoutAssertRector.php + + - + message: '#^Unused Rector\\PHPUnit\\PHPUnit100\\Rector\\MethodCall\\RemoveSetMethodsMethodCallRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/PHPUnit100/Rector/MethodCall/RemoveSetMethodsMethodCallRector.php + + - + message: '#^Unused Rector\\PHPUnit\\PHPUnit100\\Rector\\StmtsAwareInterface\\ExpectsMethodCallDecorator\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/PHPUnit100/Rector/StmtsAwareInterface/ExpectsMethodCallDecorator.php + + - + message: '#^Unused Rector\\PHPUnit\\PHPUnit100\\Rector\\StmtsAwareInterface\\WithConsecutiveRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/PHPUnit100/Rector/StmtsAwareInterface/WithConsecutiveRector.php + + - + message: '#^Unused Rector\\PHPUnit\\PHPUnit110\\Rector\\CallLike\\AssertContainsOnlyMethodCallRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/PHPUnit110/Rector/CallLike/AssertContainsOnlyMethodCallRector.php + + - + message: '#^Unused Rector\\PHPUnit\\PHPUnit110\\Rector\\ClassMethod\\ExpectsParamToMockObjectRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/PHPUnit110/Rector/ClassMethod/ExpectsParamToMockObjectRector.php + + - + message: '#^Unused Rector\\PHPUnit\\PHPUnit110\\Rector\\ClassMethod\\MockObjectArgCreateStubToCreateMockRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/PHPUnit110/Rector/ClassMethod/MockObjectArgCreateStubToCreateMockRector.php + + - + message: '#^Unused Rector\\PHPUnit\\PHPUnit110\\Rector\\Class_\\NamedArgumentForDataProviderRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/PHPUnit110/Rector/Class_/NamedArgumentForDataProviderRector.php + + - + message: '#^Unused Rector\\PHPUnit\\PHPUnit120\\Rector\\Assign\\AnyMatcherToNewAnyInvokedCountRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/PHPUnit120/Rector/Assign/AnyMatcherToNewAnyInvokedCountRector.php + + - + message: '#^Unused Rector\\PHPUnit\\PHPUnit120\\Rector\\CallLike\\CreateStubInCoalesceArgRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/PHPUnit120/Rector/CallLike/CreateStubInCoalesceArgRector.php + + - + message: '#^Unused Rector\\PHPUnit\\PHPUnit120\\Rector\\CallLike\\CreateStubOverCreateMockArgRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/PHPUnit120/Rector/CallLike/CreateStubOverCreateMockArgRector.php + + - + message: '#^Unused Rector\\PHPUnit\\PHPUnit120\\Rector\\ClassMethod\\ExpressionCreateMockToCreateStubRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/PHPUnit120/Rector/ClassMethod/ExpressionCreateMockToCreateStubRector.php + + - + message: '#^Unused Rector\\PHPUnit\\PHPUnit120\\Rector\\Class_\\AllowMockObjectsForDataProviderRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/PHPUnit120/Rector/Class_/AllowMockObjectsForDataProviderRector.php + + - + message: '#^Unused Rector\\PHPUnit\\PHPUnit120\\Rector\\Class_\\AllowMockObjectsWhereParentClassRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/PHPUnit120/Rector/Class_/AllowMockObjectsWhereParentClassRector.php + + - + message: '#^Unused Rector\\PHPUnit\\PHPUnit120\\Rector\\Class_\\AssertIsTypeMethodCallRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/PHPUnit120/Rector/Class_/AssertIsTypeMethodCallRector.php + + - + message: '#^Unused Rector\\PHPUnit\\PHPUnit120\\Rector\\Class_\\PropertyCreateMockToCreateStubRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/PHPUnit120/Rector/Class_/PropertyCreateMockToCreateStubRector.php + + - + message: '#^Unused Rector\\PHPUnit\\PHPUnit120\\Rector\\Class_\\RemoveOverrideFinalConstructTestCaseRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/PHPUnit120/Rector/Class_/RemoveOverrideFinalConstructTestCaseRector.php + + - + message: '#^Unused Rector\\PHPUnit\\PHPUnit120\\Rector\\MethodCall\\ExplicitMockExpectsCallRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/PHPUnit120/Rector/MethodCall/ExplicitMockExpectsCallRector.php + + - + message: '#^Unused Rector\\PHPUnit\\PHPUnit120\\Rector\\Property\\MockObjectVarToStubRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/PHPUnit120/Rector/Property/MockObjectVarToStubRector.php + + - + message: '#^Unused Rector\\PHPUnit\\PHPUnit50\\Rector\\StaticCall\\GetMockRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/PHPUnit50/Rector/StaticCall/GetMockRector.php + + - + message: '#^Unused Rector\\PHPUnit\\PHPUnit60\\Rector\\ClassMethod\\AddDoesNotPerformAssertionToNonAssertingTestRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector.php + + - + message: '#^Unused Rector\\PHPUnit\\PHPUnit60\\Rector\\ClassMethod\\ExceptionAnnotationRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/PHPUnit60/Rector/ClassMethod/ExceptionAnnotationRector.php + + - + message: '#^Unused Rector\\PHPUnit\\PHPUnit60\\Rector\\MethodCall\\DelegateExceptionArgumentsRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/PHPUnit60/Rector/MethodCall/DelegateExceptionArgumentsRector.php + + - + message: '#^Unused Rector\\PHPUnit\\PHPUnit70\\Rector\\Class_\\RemoveDataProviderTestPrefixRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/PHPUnit70/Rector/Class_/RemoveDataProviderTestPrefixRector.php + + - + message: '#^Unused Rector\\PHPUnit\\PHPUnit80\\Rector\\MethodCall\\AssertEqualsParameterToSpecificMethodsTypeRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/PHPUnit80/Rector/MethodCall/AssertEqualsParameterToSpecificMethodsTypeRector.php + + - + message: '#^Unused Rector\\PHPUnit\\PHPUnit80\\Rector\\MethodCall\\SpecificAssertContainsRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/PHPUnit80/Rector/MethodCall/SpecificAssertContainsRector.php + + - + message: '#^Unused Rector\\PHPUnit\\PHPUnit80\\Rector\\MethodCall\\SpecificAssertInternalTypeRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/PHPUnit80/Rector/MethodCall/SpecificAssertInternalTypeRector.php + + - + message: '#^Unused Rector\\PHPUnit\\PHPUnit90\\Rector\\MethodCall\\AssertRegExpRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/PHPUnit90/Rector/MethodCall/AssertRegExpRector.php + + - + message: '#^Unused Rector\\PHPUnit\\PHPUnit90\\Rector\\MethodCall\\ExplicitPhpErrorApiRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/PHPUnit90/Rector/MethodCall/ExplicitPhpErrorApiRector.php + + - + message: '#^Unused Rector\\PHPUnit\\PHPUnit90\\Rector\\MethodCall\\ReplaceAtMethodWithDesiredMatcherRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/PHPUnit90/Rector/MethodCall/ReplaceAtMethodWithDesiredMatcherRector.php + + - + message: '#^Unused Rector\\PHPUnit\\PHPUnit90\\Rector\\MethodCall\\SpecificAssertContainsWithoutIdentityRector\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: rules/PHPUnit90/Rector/MethodCall/SpecificAssertContainsWithoutIdentityRector.php + + - + message: '#^Unused Rector\\PHPUnit\\MethodCallRemover\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: src/MethodCallRemover.php + + - + message: '#^Unused Rector\\PHPUnit\\NodeAnalyzer\\AssertCallAnalyzer\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: src/NodeAnalyzer/AssertCallAnalyzer.php + + - + message: '#^Unused Rector\\PHPUnit\\NodeAnalyzer\\IdentifierManipulator\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: src/NodeAnalyzer/IdentifierManipulator.php + + - + message: '#^Unused Rector\\PHPUnit\\NodeAnalyzer\\MockedVariableAnalyzer\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: src/NodeAnalyzer/MockedVariableAnalyzer.php + + - + message: '#^Unused Rector\\PHPUnit\\NodeAnalyzer\\SetUpMethodDecorator\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: src/NodeAnalyzer/SetUpMethodDecorator.php + + - + message: '#^Unused Rector\\PHPUnit\\NodeAnalyzer\\TestsNodeAnalyzer\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: src/NodeAnalyzer/TestsNodeAnalyzer.php + + - + message: '#^Unused Rector\\PHPUnit\\NodeFactory\\ConsecutiveIfsFactory\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: src/NodeFactory/ConsecutiveIfsFactory.php + + - + message: '#^Unused Rector\\PHPUnit\\NodeFactory\\ExpectExceptionMethodCallFactory\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: src/NodeFactory/ExpectExceptionMethodCallFactory.php + + - + message: '#^Unused Rector\\PHPUnit\\NodeFactory\\MatcherInvocationCountMethodCallNodeFactory\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: src/NodeFactory/MatcherInvocationCountMethodCallNodeFactory.php + + - + message: '#^Unused Rector\\PHPUnit\\NodeFactory\\UsedVariablesResolver\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: src/NodeFactory/UsedVariablesResolver.php + + - + message: '#^Unused Rector\\PHPUnit\\NodeFinder\\DataProviderClassMethodFinder\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: src/NodeFinder/DataProviderClassMethodFinder.php + + - + message: '#^Unused Rector\\PHPUnit\\NodeFinder\\MethodCallNodeFinder\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: src/NodeFinder/MethodCallNodeFinder.php + + - + message: '#^Unused Rector\\PHPUnit\\PhpDoc\\DataProviderMethodRenamer\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: src/PhpDoc/DataProviderMethodRenamer.php + + - + message: '#^Unused Rector\\PHPUnit\\PhpDoc\\PhpDocValueToNodeMapper\:\:__construct$#' + identifier: shipmonk.deadMethod + count: 1 + path: src/PhpDoc/PhpDocValueToNodeMapper.php diff --git a/phpstan.neon b/phpstan.neon index 30ec8a0b..65032b7a 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -1,5 +1,6 @@ includes: - vendor/symplify/phpstan-rules/config/rector-rules.neon + - phpstan-dead-code-baseline.neon parameters: level: 8 From adc934d38b7af476f524308e1403b3b023bdf989 Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Tue, 6 Oct 2026 11:11:21 +0200 Subject: [PATCH 2/2] Ignore DI constructors via single mask instead of baseline --- phpstan-dead-code-baseline.neon | 841 -------------------------------- phpstan.neon | 6 +- 2 files changed, 5 insertions(+), 842 deletions(-) delete mode 100644 phpstan-dead-code-baseline.neon diff --git a/phpstan-dead-code-baseline.neon b/phpstan-dead-code-baseline.neon deleted file mode 100644 index 5c3208d1..00000000 --- a/phpstan-dead-code-baseline.neon +++ /dev/null @@ -1,841 +0,0 @@ -parameters: - ignoreErrors: - - - message: '#^Unused Rector\\PHPUnit\\AnnotationsToAttributes\\NodeFactory\\RequiresAttributeFactory\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/AnnotationsToAttributes/NodeFactory/RequiresAttributeFactory.php - - - - message: '#^Unused Rector\\PHPUnit\\AnnotationsToAttributes\\Rector\\ClassMethod\\DataProviderAnnotationToAttributeRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/AnnotationsToAttributes/Rector/ClassMethod/DataProviderAnnotationToAttributeRector.php - - - - message: '#^Unused Rector\\PHPUnit\\AnnotationsToAttributes\\Rector\\ClassMethod\\DependsAnnotationWithValueToAttributeRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/AnnotationsToAttributes/Rector/ClassMethod/DependsAnnotationWithValueToAttributeRector.php - - - - message: '#^Unused Rector\\PHPUnit\\AnnotationsToAttributes\\Rector\\ClassMethod\\TestWithAnnotationToAttributeRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/AnnotationsToAttributes/Rector/ClassMethod/TestWithAnnotationToAttributeRector.php - - - - message: '#^Unused Rector\\PHPUnit\\AnnotationsToAttributes\\Rector\\Class_\\AnnotationWithValueToAttributeRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/AnnotationsToAttributes/Rector/Class_/AnnotationWithValueToAttributeRector.php - - - - message: '#^Unused Rector\\PHPUnit\\AnnotationsToAttributes\\Rector\\Class_\\CoversAnnotationWithValueToAttributeRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/AnnotationsToAttributes/Rector/Class_/CoversAnnotationWithValueToAttributeRector.php - - - - message: '#^Unused Rector\\PHPUnit\\AnnotationsToAttributes\\Rector\\Class_\\RequiresAnnotationWithValueToAttributeRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/AnnotationsToAttributes/Rector/Class_/RequiresAnnotationWithValueToAttributeRector.php - - - - message: '#^Unused Rector\\PHPUnit\\AnnotationsToAttributes\\Rector\\Class_\\TicketAnnotationToAttributeRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/AnnotationsToAttributes/Rector/Class_/TicketAnnotationToAttributeRector.php - - - - message: '#^Unused Rector\\PHPUnit\\CodeQuality\\NodeAnalyser\\AssertHasKeyMatcher\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/CodeQuality/NodeAnalyser/AssertHasKeyMatcher.php - - - - message: '#^Unused Rector\\PHPUnit\\CodeQuality\\NodeAnalyser\\AssertMethodAnalyzer\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/CodeQuality/NodeAnalyser/AssertMethodAnalyzer.php - - - - message: '#^Unused Rector\\PHPUnit\\CodeQuality\\NodeAnalyser\\AssignedMocksCollector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/CodeQuality/NodeAnalyser/AssignedMocksCollector.php - - - - message: '#^Unused Rector\\PHPUnit\\CodeQuality\\NodeAnalyser\\ClosureUsesResolver\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/CodeQuality/NodeAnalyser/ClosureUsesResolver.php - - - - message: '#^Unused Rector\\PHPUnit\\CodeQuality\\NodeAnalyser\\DoctrineEntityDocumentAnalyser\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/CodeQuality/NodeAnalyser/DoctrineEntityDocumentAnalyser.php - - - - message: '#^Unused Rector\\PHPUnit\\CodeQuality\\NodeAnalyser\\MockObjectExprDetector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/CodeQuality/NodeAnalyser/MockObjectExprDetector.php - - - - message: '#^Unused Rector\\PHPUnit\\CodeQuality\\NodeAnalyser\\MockObjectPropertyDetector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/CodeQuality/NodeAnalyser/MockObjectPropertyDetector.php - - - - message: '#^Unused Rector\\PHPUnit\\CodeQuality\\NodeAnalyser\\MockedMethodTypeResolver\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/CodeQuality/NodeAnalyser/MockedMethodTypeResolver.php - - - - message: '#^Unused Rector\\PHPUnit\\CodeQuality\\NodeAnalyser\\NullableObjectAssignCollector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/CodeQuality/NodeAnalyser/NullableObjectAssignCollector.php - - - - message: '#^Unused Rector\\PHPUnit\\CodeQuality\\NodeAnalyser\\ParentCallDetector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/CodeQuality/NodeAnalyser/ParentCallDetector.php - - - - message: '#^Unused Rector\\PHPUnit\\CodeQuality\\NodeAnalyser\\SetUpAssignedMockTypesResolver\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/CodeQuality/NodeAnalyser/SetUpAssignedMockTypesResolver.php - - - - message: '#^Unused Rector\\PHPUnit\\CodeQuality\\NodeAnalyser\\StubPropertyResolver\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/CodeQuality/NodeAnalyser/StubPropertyResolver.php - - - - message: '#^Unused Rector\\PHPUnit\\CodeQuality\\NodeFactory\\FromBinaryAndAssertExpressionsFactory\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/CodeQuality/NodeFactory/FromBinaryAndAssertExpressionsFactory.php - - - - message: '#^Unused Rector\\PHPUnit\\CodeQuality\\NodeFinder\\PropertyFetchUsageFinder\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/CodeQuality/NodeFinder/PropertyFetchUsageFinder.php - - - - message: '#^Unused Rector\\PHPUnit\\CodeQuality\\NodeFinder\\VariableFinder\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/CodeQuality/NodeFinder/VariableFinder.php - - - - message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\CallLike\\DirectInstanceOverMockArgRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/CodeQuality/Rector/CallLike/DirectInstanceOverMockArgRector.php - - - - message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\ClassMethod\\AddInstanceofAssertForNullableArgumentRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/CodeQuality/Rector/ClassMethod/AddInstanceofAssertForNullableArgumentRector.php - - - - message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\ClassMethod\\AddInstanceofAssertForNullableInstanceRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/CodeQuality/Rector/ClassMethod/AddInstanceofAssertForNullableInstanceRector.php - - - - message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\ClassMethod\\AddKeysExistsAssertForKeyUseRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/CodeQuality/Rector/ClassMethod/AddKeysExistsAssertForKeyUseRector.php - - - - message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\ClassMethod\\AssertClassToThisAssertRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/CodeQuality/Rector/ClassMethod/AssertClassToThisAssertRector.php - - - - message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\ClassMethod\\BareCreateMockAssignToDirectUseRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/CodeQuality/Rector/ClassMethod/BareCreateMockAssignToDirectUseRector.php - - - - message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\ClassMethod\\ChangeMockObjectReturnUnionToIntersectionRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/CodeQuality/Rector/ClassMethod/ChangeMockObjectReturnUnionToIntersectionRector.php - - - - message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\ClassMethod\\DataProviderArrayItemsNewLinedRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/CodeQuality/Rector/ClassMethod/DataProviderArrayItemsNewLinedRector.php - - - - message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\ClassMethod\\EntityDocumentCreateMockToDirectNewRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/CodeQuality/Rector/ClassMethod/EntityDocumentCreateMockToDirectNewRector.php - - - - message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\ClassMethod\\NoSetupWithParentCallOverrideRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/CodeQuality/Rector/ClassMethod/NoSetupWithParentCallOverrideRector.php - - - - message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\ClassMethod\\RemoveEmptyTestMethodRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/CodeQuality/Rector/ClassMethod/RemoveEmptyTestMethodRector.php - - - - message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\ClassMethod\\RemoveStandaloneCreateMockRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/CodeQuality/Rector/ClassMethod/RemoveStandaloneCreateMockRector.php - - - - message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\ClassMethod\\ReplaceTestAnnotationWithPrefixedFunctionRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/CodeQuality/Rector/ClassMethod/ReplaceTestAnnotationWithPrefixedFunctionRector.php - - - - message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\Class_\\AddIntersectionParamToMockObjectParamRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/CodeQuality/Rector/Class_/AddIntersectionParamToMockObjectParamRector.php - - - - message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\Class_\\AddIntersectionVarToMockObjectPropertyRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/CodeQuality/Rector/Class_/AddIntersectionVarToMockObjectPropertyRector.php - - - - message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\Class_\\AddParamTypeFromDependsRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/CodeQuality/Rector/Class_/AddParamTypeFromDependsRector.php - - - - message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\Class_\\AddReturnTypeToDependedRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/CodeQuality/Rector/Class_/AddReturnTypeToDependedRector.php - - - - message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\Class_\\AddSeeTestAnnotationRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/CodeQuality/Rector/Class_/AddSeeTestAnnotationRector.php - - - - message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\Class_\\AddStubIntersectionVarToStubPropertyRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/CodeQuality/Rector/Class_/AddStubIntersectionVarToStubPropertyRector.php - - - - message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\Class_\\ConstructClassMethodToSetUpTestCaseRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/CodeQuality/Rector/Class_/ConstructClassMethodToSetUpTestCaseRector.php - - - - message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\Class_\\InlineStubPropertyToCreateStubMethodCallRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/CodeQuality/Rector/Class_/InlineStubPropertyToCreateStubMethodCallRector.php - - - - message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\Class_\\NarrowUnusedSetUpDefinedPropertyRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/CodeQuality/Rector/Class_/NarrowUnusedSetUpDefinedPropertyRector.php - - - - message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\Class_\\PreferPHPUnitSelfCallRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/CodeQuality/Rector/Class_/PreferPHPUnitSelfCallRector.php - - - - message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\Class_\\PreferPHPUnitThisCallRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/CodeQuality/Rector/Class_/PreferPHPUnitThisCallRector.php - - - - message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\Class_\\PreferTestsWithCamelCaseRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/CodeQuality/Rector/Class_/PreferTestsWithCamelCaseRector.php - - - - message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\Class_\\PreferTestsWithSnakeCaseRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/CodeQuality/Rector/Class_/PreferTestsWithSnakeCaseRector.php - - - - message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\Class_\\RemoveNeverUsedMockPropertyRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/CodeQuality/Rector/Class_/RemoveNeverUsedMockPropertyRector.php - - - - message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\Class_\\SingleMockPropertyTypeRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/CodeQuality/Rector/Class_/SingleMockPropertyTypeRector.php - - - - message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\Class_\\SuffixMockObjectPropertyRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/CodeQuality/Rector/Class_/SuffixMockObjectPropertyRector.php - - - - message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\Class_\\TestWithToDataProviderRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/CodeQuality/Rector/Class_/TestWithToDataProviderRector.php - - - - message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\Class_\\TypeWillReturnCallableArrowFunctionRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/CodeQuality/Rector/Class_/TypeWillReturnCallableArrowFunctionRector.php - - - - message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\Class_\\VoidMethodWithCallbackToWillReturnCallbackRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/CodeQuality/Rector/Class_/VoidMethodWithCallbackToWillReturnCallbackRector.php - - - - message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\Class_\\YieldDataProviderRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/CodeQuality/Rector/Class_/YieldDataProviderRector.php - - - - message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\Expression\\AssertArrayCastedObjectToAssertSameRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/CodeQuality/Rector/Expression/AssertArrayCastedObjectToAssertSameRector.php - - - - message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\Expression\\DecorateWillReturnMapWithExpectsMockRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/CodeQuality/Rector/Expression/DecorateWillReturnMapWithExpectsMockRector.php - - - - message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\FuncCall\\AssertFuncCallToPHPUnitAssertRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/CodeQuality/Rector/FuncCall/AssertFuncCallToPHPUnitAssertRector.php - - - - message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\MethodCall\\AssertCompareOnCountableWithMethodToAssertCountRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/CodeQuality/Rector/MethodCall/AssertCompareOnCountableWithMethodToAssertCountRector.php - - - - message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\MethodCall\\AssertComparisonToSpecificMethodRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/CodeQuality/Rector/MethodCall/AssertComparisonToSpecificMethodRector.php - - - - message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\MethodCall\\AssertEmptyNullableObjectToAssertInstanceofRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/CodeQuality/Rector/MethodCall/AssertEmptyNullableObjectToAssertInstanceofRector.php - - - - message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\MethodCall\\AssertEqualsOrAssertSameFloatParameterToSpecificMethodsTypeRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/CodeQuality/Rector/MethodCall/AssertEqualsOrAssertSameFloatParameterToSpecificMethodsTypeRector.php - - - - message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\MethodCall\\AssertEqualsToSameRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/CodeQuality/Rector/MethodCall/AssertEqualsToSameRector.php - - - - message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\MethodCall\\AssertFalseStrposToContainsRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/CodeQuality/Rector/MethodCall/AssertFalseStrposToContainsRector.php - - - - message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\MethodCall\\AssertInstanceOfComparisonRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/CodeQuality/Rector/MethodCall/AssertInstanceOfComparisonRector.php - - - - message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\MethodCall\\AssertIssetToSpecificMethodRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/CodeQuality/Rector/MethodCall/AssertIssetToSpecificMethodRector.php - - - - message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\MethodCall\\AssertNotOperatorRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/CodeQuality/Rector/MethodCall/AssertNotOperatorRector.php - - - - message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\MethodCall\\AssertSameBoolNullToSpecificMethodRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/CodeQuality/Rector/MethodCall/AssertSameBoolNullToSpecificMethodRector.php - - - - message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\MethodCall\\AssertSameTrueFalseToAssertTrueFalseRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/CodeQuality/Rector/MethodCall/AssertSameTrueFalseToAssertTrueFalseRector.php - - - - message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\MethodCall\\AssertThatToDirectAssertRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/CodeQuality/Rector/MethodCall/AssertThatToDirectAssertRector.php - - - - message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\MethodCall\\AssertTrueFalseToSpecificMethodRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/CodeQuality/Rector/MethodCall/AssertTrueFalseToSpecificMethodRector.php - - - - message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\MethodCall\\CallbackSingleAssertToSimplerRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/CodeQuality/Rector/MethodCall/CallbackSingleAssertToSimplerRector.php - - - - message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\MethodCall\\FlipAssertRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/CodeQuality/Rector/MethodCall/FlipAssertRector.php - - - - message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\MethodCall\\MatchAssertSameExpectedTypeRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/CodeQuality/Rector/MethodCall/MatchAssertSameExpectedTypeRector.php - - - - message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\MethodCall\\MergeWithCallableAndWillReturnRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/CodeQuality/Rector/MethodCall/MergeWithCallableAndWillReturnRector.php - - - - message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\MethodCall\\NarrowIdenticalWithConsecutiveRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/CodeQuality/Rector/MethodCall/NarrowIdenticalWithConsecutiveRector.php - - - - message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\MethodCall\\NarrowSingleWillReturnCallbackRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/CodeQuality/Rector/MethodCall/NarrowSingleWillReturnCallbackRector.php - - - - message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\MethodCall\\RemoveExpectAnyFromMockRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/CodeQuality/Rector/MethodCall/RemoveExpectAnyFromMockRector.php - - - - message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\MethodCall\\ScalarArgumentToExpectedParamTypeRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/CodeQuality/Rector/MethodCall/ScalarArgumentToExpectedParamTypeRector.php - - - - message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\MethodCall\\SimplerWithIsInstanceOfRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/CodeQuality/Rector/MethodCall/SimplerWithIsInstanceOfRector.php - - - - message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\MethodCall\\SingleWithConsecutiveToWithRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/CodeQuality/Rector/MethodCall/SingleWithConsecutiveToWithRector.php - - - - message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\MethodCall\\StringCastAssertStringContainsStringRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/CodeQuality/Rector/MethodCall/StringCastAssertStringContainsStringRector.php - - - - message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\MethodCall\\UseSpecificWillMethodRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/CodeQuality/Rector/MethodCall/UseSpecificWillMethodRector.php - - - - message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\MethodCall\\UseSpecificWithMethodRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/CodeQuality/Rector/MethodCall/UseSpecificWithMethodRector.php - - - - message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\MethodCall\\WillReturnCallbackFallbackToReturnFalseRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/CodeQuality/Rector/MethodCall/WillReturnCallbackFallbackToReturnFalseRector.php - - - - message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\MethodCall\\WithCallbackIdenticalToStandaloneAssertsRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/CodeQuality/Rector/MethodCall/WithCallbackIdenticalToStandaloneAssertsRector.php - - - - message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Rector\\StmtsAwareInterface\\DeclareStrictTypesTestsRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/CodeQuality/Rector/StmtsAwareInterface/DeclareStrictTypesTestsRector.php - - - - message: '#^Unused Rector\\PHPUnit\\CodeQuality\\Reflection\\MethodParametersAndReturnTypesResolver\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/CodeQuality/Reflection/MethodParametersAndReturnTypesResolver.php - - - - message: '#^Unused Rector\\PHPUnit\\CodeQuality\\TypeAnalyzer\\MethodCallParameterTypeResolver\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/CodeQuality/TypeAnalyzer/MethodCallParameterTypeResolver.php - - - - message: '#^Unused Rector\\PHPUnit\\PHPUnit100\\NodeFactory\\WillReturnCallbackFactory\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/PHPUnit100/NodeFactory/WillReturnCallbackFactory.php - - - - message: '#^Unused Rector\\PHPUnit\\PHPUnit100\\Rector\\Class_\\AddProphecyTraitRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/PHPUnit100/Rector/Class_/AddProphecyTraitRector.php - - - - message: '#^Unused Rector\\PHPUnit\\PHPUnit100\\Rector\\Class_\\ParentTestClassConstructorRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/PHPUnit100/Rector/Class_/ParentTestClassConstructorRector.php - - - - message: '#^Unused Rector\\PHPUnit\\PHPUnit100\\Rector\\Class_\\PublicDataProviderClassMethodRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/PHPUnit100/Rector/Class_/PublicDataProviderClassMethodRector.php - - - - message: '#^Unused Rector\\PHPUnit\\PHPUnit100\\Rector\\Class_\\StaticDataProviderClassMethodRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/PHPUnit100/Rector/Class_/StaticDataProviderClassMethodRector.php - - - - message: '#^Unused Rector\\PHPUnit\\PHPUnit100\\Rector\\MethodCall\\PropertyExistsWithoutAssertRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/PHPUnit100/Rector/MethodCall/PropertyExistsWithoutAssertRector.php - - - - message: '#^Unused Rector\\PHPUnit\\PHPUnit100\\Rector\\MethodCall\\RemoveSetMethodsMethodCallRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/PHPUnit100/Rector/MethodCall/RemoveSetMethodsMethodCallRector.php - - - - message: '#^Unused Rector\\PHPUnit\\PHPUnit100\\Rector\\StmtsAwareInterface\\ExpectsMethodCallDecorator\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/PHPUnit100/Rector/StmtsAwareInterface/ExpectsMethodCallDecorator.php - - - - message: '#^Unused Rector\\PHPUnit\\PHPUnit100\\Rector\\StmtsAwareInterface\\WithConsecutiveRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/PHPUnit100/Rector/StmtsAwareInterface/WithConsecutiveRector.php - - - - message: '#^Unused Rector\\PHPUnit\\PHPUnit110\\Rector\\CallLike\\AssertContainsOnlyMethodCallRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/PHPUnit110/Rector/CallLike/AssertContainsOnlyMethodCallRector.php - - - - message: '#^Unused Rector\\PHPUnit\\PHPUnit110\\Rector\\ClassMethod\\ExpectsParamToMockObjectRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/PHPUnit110/Rector/ClassMethod/ExpectsParamToMockObjectRector.php - - - - message: '#^Unused Rector\\PHPUnit\\PHPUnit110\\Rector\\ClassMethod\\MockObjectArgCreateStubToCreateMockRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/PHPUnit110/Rector/ClassMethod/MockObjectArgCreateStubToCreateMockRector.php - - - - message: '#^Unused Rector\\PHPUnit\\PHPUnit110\\Rector\\Class_\\NamedArgumentForDataProviderRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/PHPUnit110/Rector/Class_/NamedArgumentForDataProviderRector.php - - - - message: '#^Unused Rector\\PHPUnit\\PHPUnit120\\Rector\\Assign\\AnyMatcherToNewAnyInvokedCountRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/PHPUnit120/Rector/Assign/AnyMatcherToNewAnyInvokedCountRector.php - - - - message: '#^Unused Rector\\PHPUnit\\PHPUnit120\\Rector\\CallLike\\CreateStubInCoalesceArgRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/PHPUnit120/Rector/CallLike/CreateStubInCoalesceArgRector.php - - - - message: '#^Unused Rector\\PHPUnit\\PHPUnit120\\Rector\\CallLike\\CreateStubOverCreateMockArgRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/PHPUnit120/Rector/CallLike/CreateStubOverCreateMockArgRector.php - - - - message: '#^Unused Rector\\PHPUnit\\PHPUnit120\\Rector\\ClassMethod\\ExpressionCreateMockToCreateStubRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/PHPUnit120/Rector/ClassMethod/ExpressionCreateMockToCreateStubRector.php - - - - message: '#^Unused Rector\\PHPUnit\\PHPUnit120\\Rector\\Class_\\AllowMockObjectsForDataProviderRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/PHPUnit120/Rector/Class_/AllowMockObjectsForDataProviderRector.php - - - - message: '#^Unused Rector\\PHPUnit\\PHPUnit120\\Rector\\Class_\\AllowMockObjectsWhereParentClassRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/PHPUnit120/Rector/Class_/AllowMockObjectsWhereParentClassRector.php - - - - message: '#^Unused Rector\\PHPUnit\\PHPUnit120\\Rector\\Class_\\AssertIsTypeMethodCallRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/PHPUnit120/Rector/Class_/AssertIsTypeMethodCallRector.php - - - - message: '#^Unused Rector\\PHPUnit\\PHPUnit120\\Rector\\Class_\\PropertyCreateMockToCreateStubRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/PHPUnit120/Rector/Class_/PropertyCreateMockToCreateStubRector.php - - - - message: '#^Unused Rector\\PHPUnit\\PHPUnit120\\Rector\\Class_\\RemoveOverrideFinalConstructTestCaseRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/PHPUnit120/Rector/Class_/RemoveOverrideFinalConstructTestCaseRector.php - - - - message: '#^Unused Rector\\PHPUnit\\PHPUnit120\\Rector\\MethodCall\\ExplicitMockExpectsCallRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/PHPUnit120/Rector/MethodCall/ExplicitMockExpectsCallRector.php - - - - message: '#^Unused Rector\\PHPUnit\\PHPUnit120\\Rector\\Property\\MockObjectVarToStubRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/PHPUnit120/Rector/Property/MockObjectVarToStubRector.php - - - - message: '#^Unused Rector\\PHPUnit\\PHPUnit50\\Rector\\StaticCall\\GetMockRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/PHPUnit50/Rector/StaticCall/GetMockRector.php - - - - message: '#^Unused Rector\\PHPUnit\\PHPUnit60\\Rector\\ClassMethod\\AddDoesNotPerformAssertionToNonAssertingTestRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/PHPUnit60/Rector/ClassMethod/AddDoesNotPerformAssertionToNonAssertingTestRector.php - - - - message: '#^Unused Rector\\PHPUnit\\PHPUnit60\\Rector\\ClassMethod\\ExceptionAnnotationRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/PHPUnit60/Rector/ClassMethod/ExceptionAnnotationRector.php - - - - message: '#^Unused Rector\\PHPUnit\\PHPUnit60\\Rector\\MethodCall\\DelegateExceptionArgumentsRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/PHPUnit60/Rector/MethodCall/DelegateExceptionArgumentsRector.php - - - - message: '#^Unused Rector\\PHPUnit\\PHPUnit70\\Rector\\Class_\\RemoveDataProviderTestPrefixRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/PHPUnit70/Rector/Class_/RemoveDataProviderTestPrefixRector.php - - - - message: '#^Unused Rector\\PHPUnit\\PHPUnit80\\Rector\\MethodCall\\AssertEqualsParameterToSpecificMethodsTypeRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/PHPUnit80/Rector/MethodCall/AssertEqualsParameterToSpecificMethodsTypeRector.php - - - - message: '#^Unused Rector\\PHPUnit\\PHPUnit80\\Rector\\MethodCall\\SpecificAssertContainsRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/PHPUnit80/Rector/MethodCall/SpecificAssertContainsRector.php - - - - message: '#^Unused Rector\\PHPUnit\\PHPUnit80\\Rector\\MethodCall\\SpecificAssertInternalTypeRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/PHPUnit80/Rector/MethodCall/SpecificAssertInternalTypeRector.php - - - - message: '#^Unused Rector\\PHPUnit\\PHPUnit90\\Rector\\MethodCall\\AssertRegExpRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/PHPUnit90/Rector/MethodCall/AssertRegExpRector.php - - - - message: '#^Unused Rector\\PHPUnit\\PHPUnit90\\Rector\\MethodCall\\ExplicitPhpErrorApiRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/PHPUnit90/Rector/MethodCall/ExplicitPhpErrorApiRector.php - - - - message: '#^Unused Rector\\PHPUnit\\PHPUnit90\\Rector\\MethodCall\\ReplaceAtMethodWithDesiredMatcherRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/PHPUnit90/Rector/MethodCall/ReplaceAtMethodWithDesiredMatcherRector.php - - - - message: '#^Unused Rector\\PHPUnit\\PHPUnit90\\Rector\\MethodCall\\SpecificAssertContainsWithoutIdentityRector\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: rules/PHPUnit90/Rector/MethodCall/SpecificAssertContainsWithoutIdentityRector.php - - - - message: '#^Unused Rector\\PHPUnit\\MethodCallRemover\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: src/MethodCallRemover.php - - - - message: '#^Unused Rector\\PHPUnit\\NodeAnalyzer\\AssertCallAnalyzer\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: src/NodeAnalyzer/AssertCallAnalyzer.php - - - - message: '#^Unused Rector\\PHPUnit\\NodeAnalyzer\\IdentifierManipulator\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: src/NodeAnalyzer/IdentifierManipulator.php - - - - message: '#^Unused Rector\\PHPUnit\\NodeAnalyzer\\MockedVariableAnalyzer\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: src/NodeAnalyzer/MockedVariableAnalyzer.php - - - - message: '#^Unused Rector\\PHPUnit\\NodeAnalyzer\\SetUpMethodDecorator\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: src/NodeAnalyzer/SetUpMethodDecorator.php - - - - message: '#^Unused Rector\\PHPUnit\\NodeAnalyzer\\TestsNodeAnalyzer\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: src/NodeAnalyzer/TestsNodeAnalyzer.php - - - - message: '#^Unused Rector\\PHPUnit\\NodeFactory\\ConsecutiveIfsFactory\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: src/NodeFactory/ConsecutiveIfsFactory.php - - - - message: '#^Unused Rector\\PHPUnit\\NodeFactory\\ExpectExceptionMethodCallFactory\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: src/NodeFactory/ExpectExceptionMethodCallFactory.php - - - - message: '#^Unused Rector\\PHPUnit\\NodeFactory\\MatcherInvocationCountMethodCallNodeFactory\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: src/NodeFactory/MatcherInvocationCountMethodCallNodeFactory.php - - - - message: '#^Unused Rector\\PHPUnit\\NodeFactory\\UsedVariablesResolver\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: src/NodeFactory/UsedVariablesResolver.php - - - - message: '#^Unused Rector\\PHPUnit\\NodeFinder\\DataProviderClassMethodFinder\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: src/NodeFinder/DataProviderClassMethodFinder.php - - - - message: '#^Unused Rector\\PHPUnit\\NodeFinder\\MethodCallNodeFinder\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: src/NodeFinder/MethodCallNodeFinder.php - - - - message: '#^Unused Rector\\PHPUnit\\PhpDoc\\DataProviderMethodRenamer\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: src/PhpDoc/DataProviderMethodRenamer.php - - - - message: '#^Unused Rector\\PHPUnit\\PhpDoc\\PhpDocValueToNodeMapper\:\:__construct$#' - identifier: shipmonk.deadMethod - count: 1 - path: src/PhpDoc/PhpDocValueToNodeMapper.php diff --git a/phpstan.neon b/phpstan.neon index 65032b7a..a9c27561 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -1,6 +1,5 @@ includes: - vendor/symplify/phpstan-rules/config/rector-rules.neon - - phpstan-dead-code-baseline.neon parameters: level: 8 @@ -36,6 +35,11 @@ parameters: narrow_return: true ignoreErrors: + # DI container constructors are not dead code + - + identifier: shipmonk.deadMethod + message: '#^Unused .*?::__construct$#' + # phpstan false positive - '#Parameter \#1 \$className of method Rector\\PhpParser\\AstResolver\:\:resolveClassMethod\(\) expects class\-string, string given#'