Skip to content

Commit 523729f

Browse files
phpstan-botclaude
andcommitted
Drop auto-fixing from TypeTraverserMapMemoizedRule
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent a4377e2 commit 523729f

3 files changed

Lines changed: 0 additions & 234 deletions

File tree

‎src/Rules/Api/TypeTraverserMapMemoizedRule.php‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,6 @@ private function checkCall(StaticCall $call, bool $isResultUnused): ?IdentifierR
126126
return RuleErrorBuilder::message('Callback of TypeTraverser::map() does not depend on where or how many times a Type instance occurs. Use TypeTraverser::mapMemoized() instead.')
127127
->identifier('phpstanApi.typeTraverserMap')
128128
->line($call->getStartLine())
129-
->fixNode($call, static function (StaticCall $node): StaticCall {
130-
$node->name = new Identifier('mapMemoized');
131-
return $node;
132-
})
133129
->build();
134130
}
135131

‎tests/PHPStan/Rules/Api/TypeTraverserMapMemoizedRuleTest.php‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,4 @@ public function testRule(): void
5050
]);
5151
}
5252

53-
public function testFix(): void
54-
{
55-
$this->fix(__DIR__ . '/data/type-traverser-map-memoized.php', __DIR__ . '/data/type-traverser-map-memoized.php.fixed');
56-
}
57-
5853
}

‎tests/PHPStan/Rules/Api/data/type-traverser-map-memoized.php.fixed‎

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

0 commit comments

Comments
 (0)