From a770c89b99dc6c52b94bd04af43141e559a26755 Mon Sep 17 00:00:00 2001 From: Denny Lubitz Date: Fri, 12 Apr 2024 11:06:45 +0200 Subject: [PATCH] Replace removed Fusion prototypes --- src/Generic/Rules/FusionReplacePrototypeNameRector.php | 2 +- .../FusionPrototypeNameReplacement/Fixture/some_file.fusion.inc | 2 +- .../FusionPrototypeNameReplacementTest.php | 2 +- .../FusionPrototypeNameReplacement/config/configured_rule.php | 2 -- 4 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/Generic/Rules/FusionReplacePrototypeNameRector.php b/src/Generic/Rules/FusionReplacePrototypeNameRector.php index ea07afc..89de0fc 100644 --- a/src/Generic/Rules/FusionReplacePrototypeNameRector.php +++ b/src/Generic/Rules/FusionReplacePrototypeNameRector.php @@ -42,4 +42,4 @@ public function configure(array $configuration): void Assert::allIsAOf($configuration, FusionPrototypeNameReplacement::class); $this->fusionPrototypeNameReplacements = $configuration; } -} \ No newline at end of file +} diff --git a/tests/Generic/Rules/FusionPrototypeNameReplacement/Fixture/some_file.fusion.inc b/tests/Generic/Rules/FusionPrototypeNameReplacement/Fixture/some_file.fusion.inc index 249f88a..63e2644 100644 --- a/tests/Generic/Rules/FusionPrototypeNameReplacement/Fixture/some_file.fusion.inc +++ b/tests/Generic/Rules/FusionPrototypeNameReplacement/Fixture/some_file.fusion.inc @@ -30,4 +30,4 @@ prototype(Neos.Neos:SomethingNew) < prototype(Neos.Neos:NewRaw) { ` } -} \ No newline at end of file +} diff --git a/tests/Generic/Rules/FusionPrototypeNameReplacement/FusionPrototypeNameReplacementTest.php b/tests/Generic/Rules/FusionPrototypeNameReplacement/FusionPrototypeNameReplacementTest.php index c715b5d..5ed741f 100644 --- a/tests/Generic/Rules/FusionPrototypeNameReplacement/FusionPrototypeNameReplacementTest.php +++ b/tests/Generic/Rules/FusionPrototypeNameReplacement/FusionPrototypeNameReplacementTest.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Neos\Rector\Tests\Generic\Rules\FusionNodePropertyPathToWarningCommentRector; +namespace Neos\Rector\Tests\Generic\Rules\FusionPrototypeNameReplacement; use Rector\Testing\PHPUnit\AbstractRectorTestCase; diff --git a/tests/Generic/Rules/FusionPrototypeNameReplacement/config/configured_rule.php b/tests/Generic/Rules/FusionPrototypeNameReplacement/config/configured_rule.php index 156a80b..61b9ebe 100644 --- a/tests/Generic/Rules/FusionPrototypeNameReplacement/config/configured_rule.php +++ b/tests/Generic/Rules/FusionPrototypeNameReplacement/config/configured_rule.php @@ -3,8 +3,6 @@ declare (strict_types=1); use Neos\Rector\Core\FusionProcessing\FusionFileProcessor; -use Neos\Rector\Generic\Rules\FusionNodePropertyPathToWarningCommentRector; -use Neos\Rector\Generic\ValueObject\FusionNodePropertyPathToWarningComment; use Rector\Config\RectorConfig; use Neos\Rector\Generic\ValueObject\FusionPrototypeNameReplacement; use Neos\Rector\Generic\Rules\FusionReplacePrototypeNameRector;