Skip to content

Commit

Permalink
Updated Rector to commit 94b5561ca87ee6825a098c7c506b774582bf3354
Browse files Browse the repository at this point in the history
rectorphp/rector-src@94b5561 chore: bump min version of github actions (fix deprecations) (#5675)
  • Loading branch information
TomasVotruba committed Mar 1, 2024
1 parent 39c0390 commit 695c190
Show file tree
Hide file tree
Showing 1,003 changed files with 3,473 additions and 3,480 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 RectorPrefix202402;
namespace RectorPrefix202403;

use RectorPrefix202402\Nette\Utils\FileSystem;
use RectorPrefix202402\Nette\Utils\Json;
use RectorPrefix202403\Nette\Utils\FileSystem;
use RectorPrefix202403\Nette\Utils\Json;
require __DIR__ . '/../vendor/autoload.php';
$composerJsonFileContents = FileSystem::read(__DIR__ . '/../composer.json');
$composerJson = Json::decode($composerJsonFileContents, Json::FORCE_ARRAY);
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 RectorPrefix202402;
namespace RectorPrefix202403;

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 RectorPrefix202402;
namespace RectorPrefix202403;

use RectorPrefix202402\Nette\Utils\Json;
use RectorPrefix202403\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 RectorPrefix202402\Symfony\Component\Console\Application;
use RectorPrefix202402\Symfony\Component\Console\Command\Command;
use RectorPrefix202402\Symfony\Component\Console\Input\ArgvInput;
use RectorPrefix202403\Symfony\Component\Console\Application;
use RectorPrefix202403\Symfony\Component\Console\Command\Command;
use RectorPrefix202403\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('RectorPrefix202402\\AutoloadIncluder', 'AutoloadIncluder', \false);
\class_alias('RectorPrefix202403\\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 config/config.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

declare (strict_types=1);
namespace RectorPrefix202402;
namespace RectorPrefix202403;

use RectorPrefix202402\OndraM\CiDetector\CiDetector;
use RectorPrefix202403\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 RectorPrefix202402;
namespace RectorPrefix202403;

use Rector\CodeQuality\Rector\Array_\CallableThisArrayToAnonymousFunctionRector;
use Rector\CodeQuality\Rector\Assign\CombinedAssignRector;
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 RectorPrefix202402;
namespace RectorPrefix202403;

use Rector\CodingStyle\Rector\ArrowFunction\StaticArrowFunctionRector;
use Rector\CodingStyle\Rector\Assign\SplitDoubleAssignRector;
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 RectorPrefix202402;
namespace RectorPrefix202403;

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 RectorPrefix202402;
namespace RectorPrefix202403;

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 RectorPrefix202402;
namespace RectorPrefix202403;

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 RectorPrefix202402;
namespace RectorPrefix202403;

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 RectorPrefix202402;
namespace RectorPrefix202403;

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 RectorPrefix202402;
namespace RectorPrefix202403;

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 RectorPrefix202402;
namespace RectorPrefix202403;

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 RectorPrefix202402;
namespace RectorPrefix202403;

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 RectorPrefix202402;
namespace RectorPrefix202403;

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 RectorPrefix202402;
namespace RectorPrefix202403;

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 RectorPrefix202402;
namespace RectorPrefix202403;

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 RectorPrefix202402;
namespace RectorPrefix202403;

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 RectorPrefix202402;
namespace RectorPrefix202403;

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 RectorPrefix202402;
namespace RectorPrefix202403;

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 RectorPrefix202402;
namespace RectorPrefix202403;

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 RectorPrefix202402;
namespace RectorPrefix202403;

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 RectorPrefix202402;
namespace RectorPrefix202403;

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 RectorPrefix202402;
namespace RectorPrefix202403;

use Rector\Config\RectorConfig;
use Rector\Naming\Rector\Assign\RenameVariableToMatchMethodCallReturnTypeRector;
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 RectorPrefix202402;
namespace RectorPrefix202403;

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 RectorPrefix202402;
namespace RectorPrefix202403;

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 RectorPrefix202402;
namespace RectorPrefix202403;

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 RectorPrefix202402;
namespace RectorPrefix202403;

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 RectorPrefix202402;
namespace RectorPrefix202403;

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 RectorPrefix202402;
namespace RectorPrefix202403;

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 RectorPrefix202402;
namespace RectorPrefix202403;

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 RectorPrefix202402;
namespace RectorPrefix202403;

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 RectorPrefix202402;
namespace RectorPrefix202403;

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 RectorPrefix202402;
namespace RectorPrefix202403;

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 RectorPrefix202402;
namespace RectorPrefix202403;

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 RectorPrefix202402;
namespace RectorPrefix202403;

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

declare (strict_types=1);
namespace RectorPrefix202402;
namespace RectorPrefix202403;

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

declare (strict_types=1);
namespace RectorPrefix202402;
namespace RectorPrefix202403;

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

declare (strict_types=1);
namespace RectorPrefix202402;
namespace RectorPrefix202403;

use Rector\Config\RectorConfig;
use Rector\Privatization\Rector\ClassMethod\PrivatizeFinalClassMethodRector;
Expand Down
2 changes: 1 addition & 1 deletion config/set/strict-booleans.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

declare (strict_types=1);
namespace RectorPrefix202402;
namespace RectorPrefix202403;

use Rector\Config\RectorConfig;
use Rector\Strict\Rector\BooleanNot\BooleanInBooleanNotRuleFixerRector;
Expand Down
2 changes: 1 addition & 1 deletion config/set/type-declaration.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

declare (strict_types=1);
namespace RectorPrefix202402;
namespace RectorPrefix202403;

use Rector\Config\Level\TypeDeclarationLevel;
use Rector\Config\RectorConfig;
Expand Down
Loading

0 comments on commit 695c190

Please sign in to comment.