mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-19 14:27:14 +01:00
Updated Rector to commit 1b502254d98adc026690b7fb2fcc3652235e9d12
1b502254d9
[DowngradePhp80] Add array dim fetch case to DowngradeThrowExprRector (#1417)
This commit is contained in:
parent
0c19dc8049
commit
0b5cd2750a
@ -4,6 +4,7 @@ declare (strict_types=1);
|
||||
namespace Rector\DowngradePhp80\Rector\Expression;
|
||||
|
||||
use PhpParser\Node;
|
||||
use PhpParser\Node\Expr\ArrayDimFetch;
|
||||
use PhpParser\Node\Expr\Assign;
|
||||
use PhpParser\Node\Expr\BinaryOp\Coalesce;
|
||||
use PhpParser\Node\Expr\BinaryOp\Identical;
|
||||
@ -183,7 +184,7 @@ CODE_SAMPLE
|
||||
*/
|
||||
private function createCondExpr(\PhpParser\Node\Expr\BinaryOp\Coalesce $coalesce)
|
||||
{
|
||||
if ($coalesce->left instanceof \PhpParser\Node\Expr\Variable) {
|
||||
if ($coalesce->left instanceof \PhpParser\Node\Expr\Variable || $coalesce->left instanceof \PhpParser\Node\Expr\ArrayDimFetch) {
|
||||
return new \PhpParser\Node\Expr\BooleanNot(new \PhpParser\Node\Expr\Isset_([$coalesce->left]));
|
||||
}
|
||||
return new \PhpParser\Node\Expr\BinaryOp\Identical($coalesce->left, $this->nodeFactory->createNull());
|
||||
|
@ -16,11 +16,11 @@ final class VersionResolver
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public const PACKAGE_VERSION = '327144efdf82aac5249e20e114bcf5c69f0dd4c7';
|
||||
public const PACKAGE_VERSION = '1b502254d98adc026690b7fb2fcc3652235e9d12';
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE_DATE = '2021-12-07 18:48:15';
|
||||
public const RELEASE_DATE = '2021-12-07 20:48:16';
|
||||
public static function resolvePackageVersion() : string
|
||||
{
|
||||
$process = new \RectorPrefix20211207\Symfony\Component\Process\Process(['git', 'log', '--pretty="%H"', '-n1', 'HEAD'], __DIR__);
|
||||
|
2
vendor/autoload.php
vendored
2
vendor/autoload.php
vendored
@ -4,4 +4,4 @@
|
||||
|
||||
require_once __DIR__ . '/composer/autoload_real.php';
|
||||
|
||||
return ComposerAutoloaderInit0f32ea7e4b7a189f32724ee5a72b3471::getLoader();
|
||||
return ComposerAutoloaderInit4d5c6bb436c3e2e4b1a2ebf6c5018bf1::getLoader();
|
||||
|
14
vendor/composer/autoload_real.php
vendored
14
vendor/composer/autoload_real.php
vendored
@ -2,7 +2,7 @@
|
||||
|
||||
// autoload_real.php @generated by Composer
|
||||
|
||||
class ComposerAutoloaderInit0f32ea7e4b7a189f32724ee5a72b3471
|
||||
class ComposerAutoloaderInit4d5c6bb436c3e2e4b1a2ebf6c5018bf1
|
||||
{
|
||||
private static $loader;
|
||||
|
||||
@ -22,15 +22,15 @@ class ComposerAutoloaderInit0f32ea7e4b7a189f32724ee5a72b3471
|
||||
return self::$loader;
|
||||
}
|
||||
|
||||
spl_autoload_register(array('ComposerAutoloaderInit0f32ea7e4b7a189f32724ee5a72b3471', 'loadClassLoader'), true, true);
|
||||
spl_autoload_register(array('ComposerAutoloaderInit4d5c6bb436c3e2e4b1a2ebf6c5018bf1', 'loadClassLoader'), true, true);
|
||||
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit0f32ea7e4b7a189f32724ee5a72b3471', 'loadClassLoader'));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit4d5c6bb436c3e2e4b1a2ebf6c5018bf1', '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\ComposerStaticInit0f32ea7e4b7a189f32724ee5a72b3471::getInitializer($loader));
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInit4d5c6bb436c3e2e4b1a2ebf6c5018bf1::getInitializer($loader));
|
||||
} else {
|
||||
$classMap = require __DIR__ . '/autoload_classmap.php';
|
||||
if ($classMap) {
|
||||
@ -42,19 +42,19 @@ class ComposerAutoloaderInit0f32ea7e4b7a189f32724ee5a72b3471
|
||||
$loader->register(true);
|
||||
|
||||
if ($useStaticLoader) {
|
||||
$includeFiles = Composer\Autoload\ComposerStaticInit0f32ea7e4b7a189f32724ee5a72b3471::$files;
|
||||
$includeFiles = Composer\Autoload\ComposerStaticInit4d5c6bb436c3e2e4b1a2ebf6c5018bf1::$files;
|
||||
} else {
|
||||
$includeFiles = require __DIR__ . '/autoload_files.php';
|
||||
}
|
||||
foreach ($includeFiles as $fileIdentifier => $file) {
|
||||
composerRequire0f32ea7e4b7a189f32724ee5a72b3471($fileIdentifier, $file);
|
||||
composerRequire4d5c6bb436c3e2e4b1a2ebf6c5018bf1($fileIdentifier, $file);
|
||||
}
|
||||
|
||||
return $loader;
|
||||
}
|
||||
}
|
||||
|
||||
function composerRequire0f32ea7e4b7a189f32724ee5a72b3471($fileIdentifier, $file)
|
||||
function composerRequire4d5c6bb436c3e2e4b1a2ebf6c5018bf1($fileIdentifier, $file)
|
||||
{
|
||||
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
||||
require $file;
|
||||
|
8
vendor/composer/autoload_static.php
vendored
8
vendor/composer/autoload_static.php
vendored
@ -4,7 +4,7 @@
|
||||
|
||||
namespace Composer\Autoload;
|
||||
|
||||
class ComposerStaticInit0f32ea7e4b7a189f32724ee5a72b3471
|
||||
class ComposerStaticInit4d5c6bb436c3e2e4b1a2ebf6c5018bf1
|
||||
{
|
||||
public static $files = array (
|
||||
'a4a119a56e50fbb293281d9a48007e0e' => __DIR__ . '/..' . '/symfony/polyfill-php80/bootstrap.php',
|
||||
@ -3787,9 +3787,9 @@ class ComposerStaticInit0f32ea7e4b7a189f32724ee5a72b3471
|
||||
public static function getInitializer(ClassLoader $loader)
|
||||
{
|
||||
return \Closure::bind(function () use ($loader) {
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit0f32ea7e4b7a189f32724ee5a72b3471::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit0f32ea7e4b7a189f32724ee5a72b3471::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInit0f32ea7e4b7a189f32724ee5a72b3471::$classMap;
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit4d5c6bb436c3e2e4b1a2ebf6c5018bf1::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit4d5c6bb436c3e2e4b1a2ebf6c5018bf1::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInit4d5c6bb436c3e2e4b1a2ebf6c5018bf1::$classMap;
|
||||
|
||||
}, null, ClassLoader::class);
|
||||
}
|
||||
|
10
vendor/scoper-autoload.php
vendored
10
vendor/scoper-autoload.php
vendored
@ -12,8 +12,8 @@ if (!class_exists('GenerateChangelogCommand', false) && !interface_exists('Gener
|
||||
if (!class_exists('AutoloadIncluder', false) && !interface_exists('AutoloadIncluder', false) && !trait_exists('AutoloadIncluder', false)) {
|
||||
spl_autoload_call('RectorPrefix20211207\AutoloadIncluder');
|
||||
}
|
||||
if (!class_exists('ComposerAutoloaderInit0f32ea7e4b7a189f32724ee5a72b3471', false) && !interface_exists('ComposerAutoloaderInit0f32ea7e4b7a189f32724ee5a72b3471', false) && !trait_exists('ComposerAutoloaderInit0f32ea7e4b7a189f32724ee5a72b3471', false)) {
|
||||
spl_autoload_call('RectorPrefix20211207\ComposerAutoloaderInit0f32ea7e4b7a189f32724ee5a72b3471');
|
||||
if (!class_exists('ComposerAutoloaderInit4d5c6bb436c3e2e4b1a2ebf6c5018bf1', false) && !interface_exists('ComposerAutoloaderInit4d5c6bb436c3e2e4b1a2ebf6c5018bf1', false) && !trait_exists('ComposerAutoloaderInit4d5c6bb436c3e2e4b1a2ebf6c5018bf1', false)) {
|
||||
spl_autoload_call('RectorPrefix20211207\ComposerAutoloaderInit4d5c6bb436c3e2e4b1a2ebf6c5018bf1');
|
||||
}
|
||||
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('RectorPrefix20211207\Helmich\TypoScriptParser\Parser\AST\Statement');
|
||||
@ -81,9 +81,9 @@ if (!function_exists('print_node')) {
|
||||
return \RectorPrefix20211207\print_node(...func_get_args());
|
||||
}
|
||||
}
|
||||
if (!function_exists('composerRequire0f32ea7e4b7a189f32724ee5a72b3471')) {
|
||||
function composerRequire0f32ea7e4b7a189f32724ee5a72b3471() {
|
||||
return \RectorPrefix20211207\composerRequire0f32ea7e4b7a189f32724ee5a72b3471(...func_get_args());
|
||||
if (!function_exists('composerRequire4d5c6bb436c3e2e4b1a2ebf6c5018bf1')) {
|
||||
function composerRequire4d5c6bb436c3e2e4b1a2ebf6c5018bf1() {
|
||||
return \RectorPrefix20211207\composerRequire4d5c6bb436c3e2e4b1a2ebf6c5018bf1(...func_get_args());
|
||||
}
|
||||
}
|
||||
if (!function_exists('scanPath')) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user