Updated Rector to commit c42b1969ce

c42b1969ce [EarlyReturn] Handle Next Node is null on ChangeOrIfReturnToEarlyReturnRector (#798)
This commit is contained in:
Tomas Votruba 2021-08-31 13:22:32 +00:00
parent d5b84771d3
commit d807beef93
6 changed files with 20 additions and 20 deletions

View File

@ -104,7 +104,7 @@ CODE_SAMPLE
private function shouldSkip(?\PhpParser\Node $nextNode) : bool
{
if ($nextNode === null) {
return \true;
return \false;
}
return $nextNode instanceof \PhpParser\Node\Stmt\Return_ && $nextNode->expr === null;
}

View File

@ -16,11 +16,11 @@ final class VersionResolver
/**
* @var string
*/
public const PACKAGE_VERSION = '4d60c23f7ca299b8fce8e8a71dc766dae9122e0e';
public const PACKAGE_VERSION = 'c42b1969ce3d7d22a0f57beca1e0373e0730c84f';
/**
* @var string
*/
public const RELEASE_DATE = '2021-08-31 19:51:46';
public const RELEASE_DATE = '2021-08-31 20:10:36';
public static function resolvePackageVersion() : string
{
$process = new \RectorPrefix20210831\Symfony\Component\Process\Process(['git', 'log', '--pretty="%H"', '-n1', 'HEAD'], __DIR__);

2
vendor/autoload.php vendored
View File

@ -4,4 +4,4 @@
require_once __DIR__ . '/composer/autoload_real.php';
return ComposerAutoloaderInitd73d18d2a0b16e6d16139b1955b99068::getLoader();
return ComposerAutoloaderInit16fd6889ce47294594602faab52f0469::getLoader();

View File

@ -2,7 +2,7 @@
// autoload_real.php @generated by Composer
class ComposerAutoloaderInitd73d18d2a0b16e6d16139b1955b99068
class ComposerAutoloaderInit16fd6889ce47294594602faab52f0469
{
private static $loader;
@ -22,15 +22,15 @@ class ComposerAutoloaderInitd73d18d2a0b16e6d16139b1955b99068
return self::$loader;
}
spl_autoload_register(array('ComposerAutoloaderInitd73d18d2a0b16e6d16139b1955b99068', 'loadClassLoader'), true, true);
spl_autoload_register(array('ComposerAutoloaderInit16fd6889ce47294594602faab52f0469', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
spl_autoload_unregister(array('ComposerAutoloaderInitd73d18d2a0b16e6d16139b1955b99068', 'loadClassLoader'));
spl_autoload_unregister(array('ComposerAutoloaderInit16fd6889ce47294594602faab52f0469', '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\ComposerStaticInitd73d18d2a0b16e6d16139b1955b99068::getInitializer($loader));
call_user_func(\Composer\Autoload\ComposerStaticInit16fd6889ce47294594602faab52f0469::getInitializer($loader));
} else {
$classMap = require __DIR__ . '/autoload_classmap.php';
if ($classMap) {
@ -42,19 +42,19 @@ class ComposerAutoloaderInitd73d18d2a0b16e6d16139b1955b99068
$loader->register(true);
if ($useStaticLoader) {
$includeFiles = Composer\Autoload\ComposerStaticInitd73d18d2a0b16e6d16139b1955b99068::$files;
$includeFiles = Composer\Autoload\ComposerStaticInit16fd6889ce47294594602faab52f0469::$files;
} else {
$includeFiles = require __DIR__ . '/autoload_files.php';
}
foreach ($includeFiles as $fileIdentifier => $file) {
composerRequired73d18d2a0b16e6d16139b1955b99068($fileIdentifier, $file);
composerRequire16fd6889ce47294594602faab52f0469($fileIdentifier, $file);
}
return $loader;
}
}
function composerRequired73d18d2a0b16e6d16139b1955b99068($fileIdentifier, $file)
function composerRequire16fd6889ce47294594602faab52f0469($fileIdentifier, $file)
{
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
require $file;

View File

@ -4,7 +4,7 @@
namespace Composer\Autoload;
class ComposerStaticInitd73d18d2a0b16e6d16139b1955b99068
class ComposerStaticInit16fd6889ce47294594602faab52f0469
{
public static $files = array (
'a4a119a56e50fbb293281d9a48007e0e' => __DIR__ . '/..' . '/symfony/polyfill-php80/bootstrap.php',
@ -3856,9 +3856,9 @@ class ComposerStaticInitd73d18d2a0b16e6d16139b1955b99068
public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInitd73d18d2a0b16e6d16139b1955b99068::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInitd73d18d2a0b16e6d16139b1955b99068::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInitd73d18d2a0b16e6d16139b1955b99068::$classMap;
$loader->prefixLengthsPsr4 = ComposerStaticInit16fd6889ce47294594602faab52f0469::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit16fd6889ce47294594602faab52f0469::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit16fd6889ce47294594602faab52f0469::$classMap;
}, null, ClassLoader::class);
}

View File

@ -9,8 +9,8 @@ $loader = require_once __DIR__.'/autoload.php';
if (!class_exists('AutoloadIncluder', false) && !interface_exists('AutoloadIncluder', false) && !trait_exists('AutoloadIncluder', false)) {
spl_autoload_call('RectorPrefix20210831\AutoloadIncluder');
}
if (!class_exists('ComposerAutoloaderInitd73d18d2a0b16e6d16139b1955b99068', false) && !interface_exists('ComposerAutoloaderInitd73d18d2a0b16e6d16139b1955b99068', false) && !trait_exists('ComposerAutoloaderInitd73d18d2a0b16e6d16139b1955b99068', false)) {
spl_autoload_call('RectorPrefix20210831\ComposerAutoloaderInitd73d18d2a0b16e6d16139b1955b99068');
if (!class_exists('ComposerAutoloaderInit16fd6889ce47294594602faab52f0469', false) && !interface_exists('ComposerAutoloaderInit16fd6889ce47294594602faab52f0469', false) && !trait_exists('ComposerAutoloaderInit16fd6889ce47294594602faab52f0469', false)) {
spl_autoload_call('RectorPrefix20210831\ComposerAutoloaderInit16fd6889ce47294594602faab52f0469');
}
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('RectorPrefix20210831\Helmich\TypoScriptParser\Parser\AST\Statement');
@ -3311,9 +3311,9 @@ if (!function_exists('print_node')) {
return \RectorPrefix20210831\print_node(...func_get_args());
}
}
if (!function_exists('composerRequired73d18d2a0b16e6d16139b1955b99068')) {
function composerRequired73d18d2a0b16e6d16139b1955b99068() {
return \RectorPrefix20210831\composerRequired73d18d2a0b16e6d16139b1955b99068(...func_get_args());
if (!function_exists('composerRequire16fd6889ce47294594602faab52f0469')) {
function composerRequire16fd6889ce47294594602faab52f0469() {
return \RectorPrefix20210831\composerRequire16fd6889ce47294594602faab52f0469(...func_get_args());
}
}
if (!function_exists('parseArgs')) {