Skip to content

Commit

Permalink
Updated Rector to commit ef333502fb722ef471049b492a257781d02d0d62
Browse files Browse the repository at this point in the history
rectorphp/rector-src@ef33350 Make NameScopeFactory simpler (#6092)
  • Loading branch information
TomasVotruba committed Jul 1, 2024
1 parent 8ead3fe commit 738f339
Show file tree
Hide file tree
Showing 1,016 changed files with 3,517 additions and 3,511 deletions.
6 changes: 3 additions & 3 deletions bin/add-phpstan-self-replace.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

// this is part of downgrade build
declare (strict_types=1);
namespace RectorPrefix202406;
namespace RectorPrefix202407;

use RectorPrefix202406\Nette\Utils\FileSystem;
use RectorPrefix202406\Nette\Utils\Json;
use RectorPrefix202407\Nette\Utils\FileSystem;
use RectorPrefix202407\Nette\Utils\Json;
require __DIR__ . '/../vendor/autoload.php';
$composerJsonFileContents = FileSystem::read(__DIR__ . '/../composer.json');
$composerJson = Json::decode($composerJsonFileContents, \true);
Expand Down
2 changes: 1 addition & 1 deletion bin/rector
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env php
<?php
namespace RectorPrefix202406;
namespace RectorPrefix202407;

require_once __DIR__ . '/rector.php';
12 changes: 6 additions & 6 deletions bin/rector.php
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
<?php

declare (strict_types=1);
namespace RectorPrefix202406;
namespace RectorPrefix202407;

use RectorPrefix202406\Nette\Utils\Json;
use RectorPrefix202407\Nette\Utils\Json;
use Rector\Bootstrap\RectorConfigsResolver;
use Rector\ChangesReporting\Output\JsonOutputFormatter;
use Rector\Configuration\Option;
use Rector\Console\Style\SymfonyStyleFactory;
use Rector\DependencyInjection\LazyContainerFactory;
use Rector\DependencyInjection\RectorContainerFactory;
use Rector\Util\Reflection\PrivatesAccessor;
use RectorPrefix202406\Symfony\Component\Console\Application;
use RectorPrefix202406\Symfony\Component\Console\Command\Command;
use RectorPrefix202406\Symfony\Component\Console\Input\ArgvInput;
use RectorPrefix202407\Symfony\Component\Console\Application;
use RectorPrefix202407\Symfony\Component\Console\Command\Command;
use RectorPrefix202407\Symfony\Component\Console\Input\ArgvInput;
// @ intentionally: continue anyway
@\ini_set('memory_limit', '-1');
// Performance boost
Expand Down Expand Up @@ -93,7 +93,7 @@ public function loadIfExistsAndNotLoadedYet(string $filePath) : void
require_once $filePath;
}
}
\class_alias('RectorPrefix202406\\AutoloadIncluder', 'AutoloadIncluder', \false);
\class_alias('RectorPrefix202407\\AutoloadIncluder', 'AutoloadIncluder', \false);
if (\file_exists(__DIR__ . '/../preload.php') && \is_dir(__DIR__ . '/../vendor')) {
require_once __DIR__ . '/../preload.php';
}
Expand Down
4 changes: 2 additions & 2 deletions bin/test-fixture-stats.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

// this is part of downgrade build
declare (strict_types=1);
namespace RectorPrefix202406;
namespace RectorPrefix202407;

use RectorPrefix202406\Symfony\Component\Finder\Finder;
use RectorPrefix202407\Symfony\Component\Finder\Finder;
require __DIR__ . '/../vendor/autoload.php';
$finder = Finder::create()->in(__DIR__ . '/../rules-tests')->directories()->name('#Rector$#')->getIterator();
$ruleToFixtureCount = [];
Expand Down
4 changes: 2 additions & 2 deletions config/config.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

declare (strict_types=1);
namespace RectorPrefix202406;
namespace RectorPrefix202407;

use RectorPrefix202406\OndraM\CiDetector\CiDetector;
use RectorPrefix202407\OndraM\CiDetector\CiDetector;
use Rector\Bootstrap\ExtensionConfigResolver;
use Rector\Caching\ValueObject\Storage\MemoryCacheStorage;
use Rector\Config\RectorConfig;
Expand Down
2 changes: 1 addition & 1 deletion config/set/code-quality.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

declare (strict_types=1);
namespace RectorPrefix202406;
namespace RectorPrefix202407;

use Rector\Config\Level\CodeQualityLevel;
use Rector\Config\RectorConfig;
Expand Down
2 changes: 1 addition & 1 deletion config/set/coding-style.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

declare (strict_types=1);
namespace RectorPrefix202406;
namespace RectorPrefix202407;

use Rector\CodingStyle\Rector\Assign\SplitDoubleAssignRector;
use Rector\CodingStyle\Rector\Catch_\CatchExceptionNameMatchingTypeRector;
Expand Down
2 changes: 1 addition & 1 deletion config/set/datetime-to-carbon.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

declare (strict_types=1);
namespace RectorPrefix202406;
namespace RectorPrefix202407;

use Rector\Carbon\Rector\FuncCall\DateFuncCallToCarbonRector;
use Rector\Carbon\Rector\FuncCall\TimeFuncCallToCarbonRector;
Expand Down
2 changes: 1 addition & 1 deletion config/set/dead-code.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

declare (strict_types=1);
namespace RectorPrefix202406;
namespace RectorPrefix202407;

use Rector\Config\Level\DeadCodeLevel;
use Rector\Config\RectorConfig;
Expand Down
2 changes: 1 addition & 1 deletion config/set/early-return.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

declare (strict_types=1);
namespace RectorPrefix202406;
namespace RectorPrefix202407;

use Rector\Config\RectorConfig;
use Rector\EarlyReturn\Rector\Foreach_\ChangeNestedForeachIfsToEarlyContinueRector;
Expand Down
2 changes: 1 addition & 1 deletion config/set/gmagick-to-imagick.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

declare (strict_types=1);
namespace RectorPrefix202406;
namespace RectorPrefix202407;

use Rector\Config\RectorConfig;
use Rector\Renaming\Rector\MethodCall\RenameMethodRector;
Expand Down
2 changes: 1 addition & 1 deletion config/set/instanceof.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

declare (strict_types=1);
namespace RectorPrefix202406;
namespace RectorPrefix202407;

use Rector\CodeQuality\Rector\FuncCall\InlineIsAInstanceOfRector;
use Rector\CodeQuality\Rector\Identical\FlipTypeControlToUseExclusiveTypeRector;
Expand Down
2 changes: 1 addition & 1 deletion config/set/level/up-to-php53.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

declare (strict_types=1);
namespace RectorPrefix202406;
namespace RectorPrefix202407;

use Rector\Config\RectorConfig;
use Rector\Set\ValueObject\SetList;
Expand Down
2 changes: 1 addition & 1 deletion config/set/level/up-to-php54.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

declare (strict_types=1);
namespace RectorPrefix202406;
namespace RectorPrefix202407;

use Rector\Config\RectorConfig;
use Rector\Set\ValueObject\LevelSetList;
Expand Down
2 changes: 1 addition & 1 deletion config/set/level/up-to-php55.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

declare (strict_types=1);
namespace RectorPrefix202406;
namespace RectorPrefix202407;

use Rector\Config\RectorConfig;
use Rector\Set\ValueObject\LevelSetList;
Expand Down
2 changes: 1 addition & 1 deletion config/set/level/up-to-php56.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

declare (strict_types=1);
namespace RectorPrefix202406;
namespace RectorPrefix202407;

use Rector\Config\RectorConfig;
use Rector\Set\ValueObject\LevelSetList;
Expand Down
2 changes: 1 addition & 1 deletion config/set/level/up-to-php70.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

declare (strict_types=1);
namespace RectorPrefix202406;
namespace RectorPrefix202407;

use Rector\Config\RectorConfig;
use Rector\Set\ValueObject\LevelSetList;
Expand Down
2 changes: 1 addition & 1 deletion config/set/level/up-to-php71.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

declare (strict_types=1);
namespace RectorPrefix202406;
namespace RectorPrefix202407;

use Rector\Config\RectorConfig;
use Rector\Set\ValueObject\LevelSetList;
Expand Down
2 changes: 1 addition & 1 deletion config/set/level/up-to-php72.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

declare (strict_types=1);
namespace RectorPrefix202406;
namespace RectorPrefix202407;

use Rector\Config\RectorConfig;
use Rector\Set\ValueObject\LevelSetList;
Expand Down
2 changes: 1 addition & 1 deletion config/set/level/up-to-php73.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

declare (strict_types=1);
namespace RectorPrefix202406;
namespace RectorPrefix202407;

use Rector\Config\RectorConfig;
use Rector\Set\ValueObject\LevelSetList;
Expand Down
2 changes: 1 addition & 1 deletion config/set/level/up-to-php74.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

declare (strict_types=1);
namespace RectorPrefix202406;
namespace RectorPrefix202407;

use Rector\Config\RectorConfig;
use Rector\Set\ValueObject\LevelSetList;
Expand Down
2 changes: 1 addition & 1 deletion config/set/level/up-to-php80.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

declare (strict_types=1);
namespace RectorPrefix202406;
namespace RectorPrefix202407;

use Rector\Config\RectorConfig;
use Rector\Set\ValueObject\LevelSetList;
Expand Down
2 changes: 1 addition & 1 deletion config/set/level/up-to-php81.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

declare (strict_types=1);
namespace RectorPrefix202406;
namespace RectorPrefix202407;

use Rector\Config\RectorConfig;
use Rector\Set\ValueObject\LevelSetList;
Expand Down
2 changes: 1 addition & 1 deletion config/set/level/up-to-php82.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

declare (strict_types=1);
namespace RectorPrefix202406;
namespace RectorPrefix202407;

use Rector\Config\RectorConfig;
use Rector\Set\ValueObject\LevelSetList;
Expand Down
2 changes: 1 addition & 1 deletion config/set/level/up-to-php83.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

declare (strict_types=1);
namespace RectorPrefix202406;
namespace RectorPrefix202407;

use Rector\Config\RectorConfig;
use Rector\Set\ValueObject\LevelSetList;
Expand Down
2 changes: 1 addition & 1 deletion config/set/level/up-to-php84.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

declare (strict_types=1);
namespace RectorPrefix202406;
namespace RectorPrefix202407;

use Rector\Config\RectorConfig;
use Rector\Set\ValueObject\LevelSetList;
Expand Down
2 changes: 1 addition & 1 deletion config/set/naming.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

declare (strict_types=1);
namespace RectorPrefix202406;
namespace RectorPrefix202407;

use Rector\Config\RectorConfig;
use Rector\Naming\Rector\Assign\RenameVariableToMatchMethodCallReturnTypeRector;
Expand Down
2 changes: 1 addition & 1 deletion config/set/php-polyfills.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

declare (strict_types=1);
namespace RectorPrefix202406;
namespace RectorPrefix202407;

use Rector\Config\RectorConfig;
use Rector\Php73\Rector\BooleanOr\IsCountableRector;
Expand Down
2 changes: 1 addition & 1 deletion config/set/php52.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

declare (strict_types=1);
namespace RectorPrefix202406;
namespace RectorPrefix202407;

use Rector\Config\RectorConfig;
use Rector\Php52\Rector\Property\VarToPublicPropertyRector;
Expand Down
2 changes: 1 addition & 1 deletion config/set/php53.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

declare (strict_types=1);
namespace RectorPrefix202406;
namespace RectorPrefix202407;

use Rector\Config\RectorConfig;
use Rector\Php53\Rector\FuncCall\DirNameFileConstantToDirConstantRector;
Expand Down
2 changes: 1 addition & 1 deletion config/set/php54.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

declare (strict_types=1);
namespace RectorPrefix202406;
namespace RectorPrefix202407;

use Rector\Config\RectorConfig;
use Rector\Php54\Rector\Array_\LongArrayToShortArrayRector;
Expand Down
2 changes: 1 addition & 1 deletion config/set/php55.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

declare (strict_types=1);
namespace RectorPrefix202406;
namespace RectorPrefix202407;

use Rector\Config\RectorConfig;
use Rector\Php55\Rector\Class_\ClassConstantToSelfClassRector;
Expand Down
2 changes: 1 addition & 1 deletion config/set/php56.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

declare (strict_types=1);
namespace RectorPrefix202406;
namespace RectorPrefix202407;

use Rector\Config\RectorConfig;
use Rector\Php56\Rector\FuncCall\PowToExpRector;
Expand Down
2 changes: 1 addition & 1 deletion config/set/php70.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

declare (strict_types=1);
namespace RectorPrefix202406;
namespace RectorPrefix202407;

use Rector\Config\RectorConfig;
use Rector\Php70\Rector\Assign\ListSplitStringRector;
Expand Down
2 changes: 1 addition & 1 deletion config/set/php71.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

declare (strict_types=1);
namespace RectorPrefix202406;
namespace RectorPrefix202407;

use Rector\Config\RectorConfig;
use Rector\Php71\Rector\Assign\AssignArrayToStringRector;
Expand Down
2 changes: 1 addition & 1 deletion config/set/php72.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

declare (strict_types=1);
namespace RectorPrefix202406;
namespace RectorPrefix202407;

use Rector\Config\RectorConfig;
use Rector\Php72\Rector\Assign\ListEachRector;
Expand Down
2 changes: 1 addition & 1 deletion config/set/php73.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

declare (strict_types=1);
namespace RectorPrefix202406;
namespace RectorPrefix202407;

use Rector\Config\RectorConfig;
use Rector\Php52\Rector\Switch_\ContinueToBreakInSwitchRector;
Expand Down
2 changes: 1 addition & 1 deletion config/set/php74.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

declare (strict_types=1);
namespace RectorPrefix202406;
namespace RectorPrefix202407;

use Rector\Config\RectorConfig;
use Rector\Php74\Rector\ArrayDimFetch\CurlyToSquareBracketArrayStringRector;
Expand Down
2 changes: 1 addition & 1 deletion config/set/php80.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

declare (strict_types=1);
namespace RectorPrefix202406;
namespace RectorPrefix202407;

use Rector\Arguments\Rector\ClassMethod\ArgumentAdderRector;
use Rector\Arguments\Rector\FuncCall\FunctionArgumentDefaultValueReplacerRector;
Expand Down
2 changes: 1 addition & 1 deletion config/set/php81.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

declare (strict_types=1);
namespace RectorPrefix202406;
namespace RectorPrefix202407;

use Rector\Config\RectorConfig;
use Rector\Php81\Rector\Array_\FirstClassCallableRector;
Expand Down
Loading

0 comments on commit 738f339

Please sign in to comment.