Skip to content

Commit

Permalink
skip rename for now, till re-traversing
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Nov 5, 2021
1 parent 830e7f2 commit 063002e
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 219 deletions.
3 changes: 0 additions & 3 deletions rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,6 @@
$parameters->set(Option::AUTO_IMPORT_NAMES, true);

$parameters->set(Option::SKIP, [
// possibly leave that to PHPStan rule, already covered
\Rector\CodeQuality\Rector\Name\FixClassCaseSensitivityNameRector::class,

StringClassNameToClassConstantRector::class,
// some classes in config might not exist without dev dependencies
SplitStringClassConstantToClassConstFetchRector::class,
Expand Down
208 changes: 0 additions & 208 deletions rules/CodeQuality/Rector/Name/FixClassCaseSensitivityNameRector.php

This file was deleted.

4 changes: 1 addition & 3 deletions rules/DeadCode/NodeAnalyzer/ExprUsedInNextNodeAnalyzer.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@ public function isUsed(Expr $expr): bool
{
return (bool) $this->betterNodeFinder->findFirstNext(
$expr,
function (Node $node) use ($expr): bool {
return $this->exprUsedInNodeAnalyzer->isUsed($node, $expr);
}
fn (Node $node): bool => $this->exprUsedInNodeAnalyzer->isUsed($node, $expr)
);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,6 @@ public function getNodeTypes(): array
*/
public function refactor(Node $node): ?Node
{
// if ($this->isInAnonymousClass($node)) {
// return null;
// }

if ($this->shouldSkipProperty($node)) {
return null;
}
Expand Down
2 changes: 1 addition & 1 deletion tests/Issues/Issue6675/Fixture/fixture.php.inc
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ echo mysql_error();
namespace Rector\Core\Tests\Issues\Issue6675\Fixture;

$db = mysqli_connect("server","user","password");
echo mysqli_error($db);
echo mysql_error();

?>

0 comments on commit 063002e

Please sign in to comment.