Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Project-specific conventions for `rector/rector-src`. See `CONTRIBUTING.md` for
- `rules/` — built-in Rector rules, also under `Rector\` namespace (PSR-4 maps both `src/` and `rules/` to `Rector\`).
- `rules-tests/` — tests for `rules/`, namespace `Rector\Tests\`.
- `tests/` — tests for `src/`, same `Rector\Tests\` namespace.
- `utils/` + `utils-tests/` — internal dev tooling (`Rector\Utils\`).
- `utils/` — internal dev tooling (`Rector\Utils\`).
- `config/` — config sets/presets (kept as plain class-string literals; do not let Rector rewrite them).
- `build/target-repository/docs` — documentation lives here, not in repo root.

Expand Down
1 change: 0 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@
"rules-tests",
"tests"
],
"Rector\\Utils\\Tests\\": "utils-tests",
"Rector\\Utils\\PHPStan\\Tests\\": "utils/phpstan/tests",
"E2e\\Parallel\\Reflection\\Resolver\\": [
"e2e/parallel-reflection-resolver/src/",
Expand Down
2 changes: 1 addition & 1 deletion config/set/rector-preset.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@

use Rector\CodingStyle\Rector\PostInc\PostIncDecToPreIncDecRector;
use Rector\Config\RectorConfig;
use Rector\DeadCode\Rector\Class_\RemoveRefactorDuplicatedNodeInstanceCheckRector;
use Rector\PHPUnit\CodeQuality\Rector\Class_\AddSeeTestAnnotationRector;
use Rector\Privatization\Rector\Class_\FinalizeTestCaseClassRector;
use Rector\TypeDeclaration\Rector\StmtsAwareInterface\DeclareStrictTypesRector;
use Rector\TypeDeclarationDocblocks\Rector\Class_\AddParamTypeToRefactorMethodRector;
use Rector\Utils\Rector\RemoveRefactorDuplicatedNodeInstanceCheckRector;

return static function (RectorConfig $rectorConfig): void {
$rectorConfig->rules([
Expand Down
2 changes: 1 addition & 1 deletion phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ parameters:
identifier: offsetAccess.invalidOffset
path: src/CustomRules/SimpleNodeDumper.php

- '#Method Rector\\Utils\\Rector\\RemoveRefactorDuplicatedNodeInstanceCheckRector\:\:getInstanceofNodeClass\(\) should return class\-string<PhpParser\\Node>\|null but returns class\-string#'
- '#Method Rector\\DeadCode\\Rector\\Class_\\RemoveRefactorDuplicatedNodeInstanceCheckRector\:\:getInstanceofNodeClass\(\) should return class\-string<PhpParser\\Node>\|null but returns class\-string#'

# copied from /vendor, to keep as original as possible
-
Expand Down
1 change: 0 additions & 1 deletion phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
<testsuite name="main">
<directory>tests</directory>
<directory>rules-tests</directory>
<directory>utils-tests</directory>
<directory>utils/phpstan/tests</directory>
<exclude>rules-tests/Php83/Rector/ClassMethod/AddOverrideAttributeToOverriddenMethodsRector/Source/SomeAbstractTest.php</exclude>
</testsuite>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Rector\Utils\Tests\Rector\RemoveRefactorDuplicatedNodeInstanceCheckRector\Fixture;
namespace Rector\Tests\DeadCode\Rector\Class_\RemoveRefactorDuplicatedNodeInstanceCheckRector\Fixture;

use PhpParser\Node;
use Rector\Rector\AbstractRector;
Expand Down Expand Up @@ -29,7 +29,7 @@ final class CoverBareGetNodeTypes extends AbstractRector
-----
<?php

namespace Rector\Utils\Tests\Rector\RemoveRefactorDuplicatedNodeInstanceCheckRector\Fixture;
namespace Rector\Tests\DeadCode\Rector\Class_\RemoveRefactorDuplicatedNodeInstanceCheckRector\Fixture;

use PhpParser\Node;
use Rector\Rector\AbstractRector;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Rector\Utils\Tests\Rector\RemoveRefactorDuplicatedNodeInstanceCheckRector\Fixture;
namespace Rector\Tests\DeadCode\Rector\Class_\RemoveRefactorDuplicatedNodeInstanceCheckRector\Fixture;

use PhpParser\Node;
use Rector\Rector\AbstractRector;
Expand Down Expand Up @@ -32,7 +32,7 @@ final class SomeClass extends AbstractRector
-----
<?php

namespace Rector\Utils\Tests\Rector\RemoveRefactorDuplicatedNodeInstanceCheckRector\Fixture;
namespace Rector\Tests\DeadCode\Rector\Class_\RemoveRefactorDuplicatedNodeInstanceCheckRector\Fixture;

use PhpParser\Node;
use Rector\Rector\AbstractRector;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Rector\Utils\Tests\Rector\RemoveRefactorDuplicatedNodeInstanceCheckRector;
namespace Rector\Tests\DeadCode\Rector\Class_\RemoveRefactorDuplicatedNodeInstanceCheckRector;

use Iterator;
use PHPUnit\Framework\Attributes\DataProvider;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?php

declare(strict_types=1);

use Rector\Config\RectorConfig;
use Rector\DeadCode\Rector\Class_\RemoveRefactorDuplicatedNodeInstanceCheckRector;

return RectorConfig::configure()
->withRules([RemoveRefactorDuplicatedNodeInstanceCheckRector::class]);
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Rector\Utils\Rector;
namespace Rector\DeadCode\Rector\Class_;

use PhpParser\Node;
use PhpParser\Node\Expr;
Expand All @@ -23,7 +23,7 @@
use Webmozart\Assert\Assert;

/**
* @see \Rector\Utils\Tests\Rector\RemoveRefactorDuplicatedNodeInstanceCheckRector\RemoveRefactorDuplicatedNodeInstanceCheckRectorTest
* @see \Rector\Tests\DeadCode\Rector\Class_\RemoveRefactorDuplicatedNodeInstanceCheckRector\RemoveRefactorDuplicatedNodeInstanceCheckRectorTest
*/
final class RemoveRefactorDuplicatedNodeInstanceCheckRector extends AbstractRector
{
Expand Down

This file was deleted.

Loading