Skip to content

Commit a250c4a

Browse files
authored
IBX-8534: Fixed VariationPathGenerator interface renaming Rector (#31)
For more details see https://issues.ibexa.co/browse/IBX-8534 and #31 Key changes: * Fixed VariationPathGenerator interface replacement by using RenameClassRector * Dropped obsolete ReplaceInterfaceRector * [Tests] Aligned VariationPathGenerator replacement tests with the fix
1 parent d09207b commit a250c4a

File tree

6 files changed

+2
-151
lines changed

6 files changed

+2
-151
lines changed

src/contracts/Sets/ibexa-50.php

+2-4
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
use Ibexa\Rector\Rule\PropertyToGetterRector;
1212
use Ibexa\Rector\Rule\RemoveArgumentFromMethodCallRector;
13-
use Ibexa\Rector\Rule\ReplaceInterfaceRector;
1413
use Rector\Config\RectorConfig;
1514
use Rector\Renaming\Rector\ClassConstFetch\RenameClassConstFetchRector;
1615
use Rector\Renaming\Rector\MethodCall\RenameMethodRector;
@@ -204,10 +203,9 @@
204203
);
205204

206205
$rectorConfig->ruleWithConfiguration(
207-
ReplaceInterfaceRector::class,
206+
RenameClassRector::class,
208207
[
209-
'to_replace' => 'Ibexa\Bundle\Core\Imagine\VariationPathGenerator',
210-
'replace_with' => 'Ibexa\Contracts\Core\Variation\VariationPathGenerator',
208+
'Ibexa\Bundle\Core\Imagine\VariationPathGenerator' => 'Ibexa\Contracts\Core\Variation\VariationPathGenerator',
211209
]
212210
);
213211

src/lib/Rule/ReplaceInterfaceRector.php

-74
This file was deleted.

tests/lib/Rule/ReplaceInterfaceRector/Fixture/some_class.php.inc

-19
This file was deleted.

tests/lib/Rule/ReplaceInterfaceRector/ReplaceInterfaceRectorTest.php

-34
This file was deleted.

tests/lib/Rule/ReplaceInterfaceRector/config/configured_rule.php

-20
This file was deleted.

0 commit comments

Comments
 (0)