Skip to content

Commit

Permalink
Rector 0.12.2
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Nov 10, 2021
1 parent 8cb87f1 commit a46666f
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 73 deletions.
2 changes: 0 additions & 2 deletions config/set/downgrade-php54.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,11 @@
use Rector\Core\ValueObject\PhpVersion;
use Rector\DowngradePhp54\Rector\Array_\ShortArrayToLongArrayRector;
use Rector\DowngradePhp54\Rector\Closure\DowngradeStaticClosureRector;
use Rector\DowngradePhp54\Rector\LNumber\DowngradeBinaryNotationRector;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
return static function (\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator $containerConfigurator) : void {
$parameters = $containerConfigurator->parameters();
$parameters->set(\Rector\Core\Configuration\Option::PHP_VERSION_FEATURES, \Rector\Core\ValueObject\PhpVersion::PHP_53);
$services = $containerConfigurator->services();
$services->set(\Rector\DowngradePhp54\Rector\Array_\ShortArrayToLongArrayRector::class);
$services->set(\Rector\DowngradePhp54\Rector\Closure\DowngradeStaticClosureRector::class);
$services->set(\Rector\DowngradePhp54\Rector\LNumber\DowngradeBinaryNotationRector::class);
};

This file was deleted.

4 changes: 2 additions & 2 deletions src/Application/VersionResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ final class VersionResolver
/**
* @var string
*/
public const PACKAGE_VERSION = '9097bca92e1439737d3656a6ff24df837b438114';
public const PACKAGE_VERSION = '6dd1587054ba90fd39112479cf0b2a4ca52920a1';
/**
* @var string
*/
public const RELEASE_DATE = '2021-11-10 12:29:30';
public const RELEASE_DATE = '2021-11-10 12:16:31';
public static function resolvePackageVersion() : string
{
$process = new \RectorPrefix20211110\Symfony\Component\Process\Process(['git', 'log', '--pretty="%H"', '-n1', 'HEAD'], __DIR__);
Expand Down
2 changes: 1 addition & 1 deletion vendor/autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

require_once __DIR__ . '/composer/autoload_real.php';

return ComposerAutoloaderInitec86a4dc857ac5724d0475135842d19a::getLoader();
return ComposerAutoloaderInite0972e15b76b8e449256a822ce532c5f::getLoader();
1 change: 0 additions & 1 deletion vendor/composer/autoload_classmap.php
Original file line number Diff line number Diff line change
Expand Up @@ -1795,7 +1795,6 @@
'Rector\\DowngradePhp53\\Rector\\Dir\\DirConstToFileConstRector' => $baseDir . '/rules/DowngradePhp53/Rector/Dir/DirConstToFileConstRector.php',
'Rector\\DowngradePhp54\\Rector\\Array_\\ShortArrayToLongArrayRector' => $baseDir . '/rules/DowngradePhp54/Rector/Array_/ShortArrayToLongArrayRector.php',
'Rector\\DowngradePhp54\\Rector\\Closure\\DowngradeStaticClosureRector' => $baseDir . '/rules/DowngradePhp54/Rector/Closure/DowngradeStaticClosureRector.php',
'Rector\\DowngradePhp54\\Rector\\LNumber\\DowngradeBinaryNotationRector' => $baseDir . '/rules/DowngradePhp54/Rector/LNumber/DowngradeBinaryNotationRector.php',
'Rector\\DowngradePhp55\\Rector\\ClassConstFetch\\DowngradeClassConstantToStringRector' => $baseDir . '/rules/DowngradePhp55/Rector/ClassConstFetch/DowngradeClassConstantToStringRector.php',
'Rector\\DowngradePhp56\\Rector\\Pow\\DowngradeExponentialAssignmentOperatorRector' => $baseDir . '/rules/DowngradePhp56/Rector/Pow/DowngradeExponentialAssignmentOperatorRector.php',
'Rector\\DowngradePhp56\\Rector\\Pow\\DowngradeExponentialOperatorRector' => $baseDir . '/rules/DowngradePhp56/Rector/Pow/DowngradeExponentialOperatorRector.php',
Expand Down
14 changes: 7 additions & 7 deletions vendor/composer/autoload_real.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

// autoload_real.php @generated by Composer

class ComposerAutoloaderInitec86a4dc857ac5724d0475135842d19a
class ComposerAutoloaderInite0972e15b76b8e449256a822ce532c5f
{
private static $loader;

Expand All @@ -22,15 +22,15 @@ public static function getLoader()
return self::$loader;
}

spl_autoload_register(array('ComposerAutoloaderInitec86a4dc857ac5724d0475135842d19a', 'loadClassLoader'), true, true);
spl_autoload_register(array('ComposerAutoloaderInite0972e15b76b8e449256a822ce532c5f', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
spl_autoload_unregister(array('ComposerAutoloaderInitec86a4dc857ac5724d0475135842d19a', 'loadClassLoader'));
spl_autoload_unregister(array('ComposerAutoloaderInite0972e15b76b8e449256a822ce532c5f', 'loadClassLoader'));

$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
if ($useStaticLoader) {
require __DIR__ . '/autoload_static.php';

call_user_func(\Composer\Autoload\ComposerStaticInitec86a4dc857ac5724d0475135842d19a::getInitializer($loader));
call_user_func(\Composer\Autoload\ComposerStaticInite0972e15b76b8e449256a822ce532c5f::getInitializer($loader));
} else {
$classMap = require __DIR__ . '/autoload_classmap.php';
if ($classMap) {
Expand All @@ -42,19 +42,19 @@ public static function getLoader()
$loader->register(true);

if ($useStaticLoader) {
$includeFiles = Composer\Autoload\ComposerStaticInitec86a4dc857ac5724d0475135842d19a::$files;
$includeFiles = Composer\Autoload\ComposerStaticInite0972e15b76b8e449256a822ce532c5f::$files;
} else {
$includeFiles = require __DIR__ . '/autoload_files.php';
}
foreach ($includeFiles as $fileIdentifier => $file) {
composerRequireec86a4dc857ac5724d0475135842d19a($fileIdentifier, $file);
composerRequiree0972e15b76b8e449256a822ce532c5f($fileIdentifier, $file);
}

return $loader;
}
}

function composerRequireec86a4dc857ac5724d0475135842d19a($fileIdentifier, $file)
function composerRequiree0972e15b76b8e449256a822ce532c5f($fileIdentifier, $file)
{
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
require $file;
Expand Down
9 changes: 4 additions & 5 deletions vendor/composer/autoload_static.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Composer\Autoload;

class ComposerStaticInitec86a4dc857ac5724d0475135842d19a
class ComposerStaticInite0972e15b76b8e449256a822ce532c5f
{
public static $files = array (
'a4a119a56e50fbb293281d9a48007e0e' => __DIR__ . '/..' . '/symfony/polyfill-php80/bootstrap.php',
Expand Down Expand Up @@ -2125,7 +2125,6 @@ class ComposerStaticInitec86a4dc857ac5724d0475135842d19a
'Rector\\DowngradePhp53\\Rector\\Dir\\DirConstToFileConstRector' => __DIR__ . '/../..' . '/rules/DowngradePhp53/Rector/Dir/DirConstToFileConstRector.php',
'Rector\\DowngradePhp54\\Rector\\Array_\\ShortArrayToLongArrayRector' => __DIR__ . '/../..' . '/rules/DowngradePhp54/Rector/Array_/ShortArrayToLongArrayRector.php',
'Rector\\DowngradePhp54\\Rector\\Closure\\DowngradeStaticClosureRector' => __DIR__ . '/../..' . '/rules/DowngradePhp54/Rector/Closure/DowngradeStaticClosureRector.php',
'Rector\\DowngradePhp54\\Rector\\LNumber\\DowngradeBinaryNotationRector' => __DIR__ . '/../..' . '/rules/DowngradePhp54/Rector/LNumber/DowngradeBinaryNotationRector.php',
'Rector\\DowngradePhp55\\Rector\\ClassConstFetch\\DowngradeClassConstantToStringRector' => __DIR__ . '/../..' . '/rules/DowngradePhp55/Rector/ClassConstFetch/DowngradeClassConstantToStringRector.php',
'Rector\\DowngradePhp56\\Rector\\Pow\\DowngradeExponentialAssignmentOperatorRector' => __DIR__ . '/../..' . '/rules/DowngradePhp56/Rector/Pow/DowngradeExponentialAssignmentOperatorRector.php',
'Rector\\DowngradePhp56\\Rector\\Pow\\DowngradeExponentialOperatorRector' => __DIR__ . '/../..' . '/rules/DowngradePhp56/Rector/Pow/DowngradeExponentialOperatorRector.php',
Expand Down Expand Up @@ -3533,9 +3532,9 @@ class ComposerStaticInitec86a4dc857ac5724d0475135842d19a
public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInitec86a4dc857ac5724d0475135842d19a::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInitec86a4dc857ac5724d0475135842d19a::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInitec86a4dc857ac5724d0475135842d19a::$classMap;
$loader->prefixLengthsPsr4 = ComposerStaticInite0972e15b76b8e449256a822ce532c5f::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInite0972e15b76b8e449256a822ce532c5f::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInite0972e15b76b8e449256a822ce532c5f::$classMap;

}, null, ClassLoader::class);
}
Expand Down
10 changes: 5 additions & 5 deletions vendor/scoper-autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
if (!class_exists('AutoloadIncluder', false) && !interface_exists('AutoloadIncluder', false) && !trait_exists('AutoloadIncluder', false)) {
spl_autoload_call('RectorPrefix20211110\AutoloadIncluder');
}
if (!class_exists('ComposerAutoloaderInitec86a4dc857ac5724d0475135842d19a', false) && !interface_exists('ComposerAutoloaderInitec86a4dc857ac5724d0475135842d19a', false) && !trait_exists('ComposerAutoloaderInitec86a4dc857ac5724d0475135842d19a', false)) {
spl_autoload_call('RectorPrefix20211110\ComposerAutoloaderInitec86a4dc857ac5724d0475135842d19a');
if (!class_exists('ComposerAutoloaderInite0972e15b76b8e449256a822ce532c5f', false) && !interface_exists('ComposerAutoloaderInite0972e15b76b8e449256a822ce532c5f', false) && !trait_exists('ComposerAutoloaderInite0972e15b76b8e449256a822ce532c5f', false)) {
spl_autoload_call('RectorPrefix20211110\ComposerAutoloaderInite0972e15b76b8e449256a822ce532c5f');
}
if (!class_exists('Helmich\TypoScriptParser\Parser\AST\Statement', false) && !interface_exists('Helmich\TypoScriptParser\Parser\AST\Statement', false) && !trait_exists('Helmich\TypoScriptParser\Parser\AST\Statement', false)) {
spl_autoload_call('RectorPrefix20211110\Helmich\TypoScriptParser\Parser\AST\Statement');
Expand Down Expand Up @@ -3309,9 +3309,9 @@ function print_node() {
return \RectorPrefix20211110\print_node(...func_get_args());
}
}
if (!function_exists('composerRequireec86a4dc857ac5724d0475135842d19a')) {
function composerRequireec86a4dc857ac5724d0475135842d19a() {
return \RectorPrefix20211110\composerRequireec86a4dc857ac5724d0475135842d19a(...func_get_args());
if (!function_exists('composerRequiree0972e15b76b8e449256a822ce532c5f')) {
function composerRequiree0972e15b76b8e449256a822ce532c5f() {
return \RectorPrefix20211110\composerRequiree0972e15b76b8e449256a822ce532c5f(...func_get_args());
}
}
if (!function_exists('parseArgs')) {
Expand Down

0 comments on commit a46666f

Please sign in to comment.