Skip to content

Commit

Permalink
[Transform] Move ReservedFnFunctionRector from Php74 to Transform nam…
Browse files Browse the repository at this point in the history
…espace (#1423)
  • Loading branch information
samsonasik authored Dec 9, 2021
1 parent c445b5a commit 7e13d0c
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 9 deletions.
3 changes: 0 additions & 3 deletions config/set/php74.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
use Rector\Php74\Rector\FuncCall\FilterVarToAddSlashesRector;
use Rector\Php74\Rector\FuncCall\GetCalledClassToStaticClassRector;
use Rector\Php74\Rector\FuncCall\MbStrrposEncodingArgumentPositionRector;
use Rector\Php74\Rector\Function_\ReservedFnFunctionRector;
use Rector\Php74\Rector\LNumber\AddLiteralSeparatorToNumberRector;
use Rector\Php74\Rector\MethodCall\ChangeReflectionTypeToStringToGetNameRector;
use Rector\Php74\Rector\Property\RestoreDefaultNullToNullableTypePropertyRector;
Expand Down Expand Up @@ -49,8 +48,6 @@

$services->set(NullCoalescingOperatorRector::class);

$services->set(ReservedFnFunctionRector::class);

$services->set(ClosureToArrowFunctionRector::class);

$services->set(ArraySpreadInsteadOfArrayMergeRector::class);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Rector\Tests\Php74\Rector\Function_\ReservedFnFunctionRector\Fixture;
namespace Rector\Tests\Transform\Rector\Function_\ReservedFnFunctionRector\Fixture;

class Fixture
{
Expand All @@ -19,7 +19,7 @@ class Fixture
-----
<?php

namespace Rector\Tests\Php74\Rector\Function_\ReservedFnFunctionRector\Fixture;
namespace Rector\Tests\Transform\Rector\Function_\ReservedFnFunctionRector\Fixture;

class Fixture
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Rector\Tests\Php74\Rector\Function_\ReservedFnFunctionRector;
namespace Rector\Tests\Transform\Rector\Function_\ReservedFnFunctionRector;

use Iterator;
use Rector\Testing\PHPUnit\AbstractRectorTestCase;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

use Rector\Php74\Rector\Function_\ReservedFnFunctionRector;
use Rector\Transform\Rector\Function_\ReservedFnFunctionRector;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;

return static function (ContainerConfigurator $containerConfigurator): void {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Rector\Php74\Rector\Function_;
namespace Rector\Transform\Rector\Function_;

use PhpParser\Node;
use PhpParser\Node\Expr\FuncCall;
Expand All @@ -19,7 +19,7 @@

/**
* @changelog https://github.com/php/php-src/pull/3941/files#diff-7e3a1a5df28a1cbd8c0fb6db68f243da
* @see \Rector\Tests\Php74\Rector\Function_\ReservedFnFunctionRector\ReservedFnFunctionRectorTest
* @see \Rector\Tests\Transform\Rector\Function_\ReservedFnFunctionRector\ReservedFnFunctionRectorTest
*/
final class ReservedFnFunctionRector extends AbstractRector implements ConfigurableRectorInterface, MinPhpVersionInterface
{
Expand Down

0 comments on commit 7e13d0c

Please sign in to comment.