mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-17 13:28:18 +01:00
Updated Rector to commit 14081fecec9a9079c6ec279b383f8ade48f2b990
14081fecec
Add inside array item marker to remove PARENT_NODE from downgrade (#4447)
This commit is contained in:
parent
b0309e26cf
commit
46ce317aa4
@ -264,4 +264,8 @@ final class AttributeKey
|
||||
* @var string
|
||||
*/
|
||||
public const INSIDE_ARRAY_DIM_FETCH = 'inside_array_dim_fetch';
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public const INSIDE_ARRAY_ITEM = 'inside_array_item';
|
||||
}
|
||||
|
@ -9,6 +9,7 @@ use PhpParser\Node\Attribute;
|
||||
use PhpParser\Node\Expr;
|
||||
use PhpParser\Node\Expr\Array_;
|
||||
use PhpParser\Node\Expr\ArrayDimFetch;
|
||||
use PhpParser\Node\Expr\ArrayItem;
|
||||
use PhpParser\Node\Expr\Closure;
|
||||
use PhpParser\Node\Expr\Isset_;
|
||||
use PhpParser\Node\Expr\Variable;
|
||||
@ -51,6 +52,9 @@ final class ContextNodeVisitor extends NodeVisitorAbstract implements ScopeResol
|
||||
if ($node instanceof ArrayDimFetch) {
|
||||
$node->var->setAttribute(AttributeKey::INSIDE_ARRAY_DIM_FETCH, \true);
|
||||
}
|
||||
if ($node instanceof ArrayItem) {
|
||||
$node->value->setAttribute(AttributeKey::INSIDE_ARRAY_ITEM, \true);
|
||||
}
|
||||
if ($node instanceof Isset_ || $node instanceof Unset_) {
|
||||
$this->processContextInIssetOrUnset($node);
|
||||
return null;
|
||||
|
@ -8,7 +8,6 @@ use PhpParser\Node;
|
||||
use PhpParser\Node\ComplexType;
|
||||
use PhpParser\Node\Expr;
|
||||
use PhpParser\Node\Expr\ArrayDimFetch;
|
||||
use PhpParser\Node\Expr\Assign;
|
||||
use PhpParser\Node\Expr\ClassConstFetch;
|
||||
use PhpParser\Node\Expr\Closure;
|
||||
use PhpParser\Node\Expr\ClosureUse;
|
||||
@ -26,7 +25,6 @@ use PhpParser\Node\Scalar\String_;
|
||||
use PhpParser\Node\Stmt;
|
||||
use PhpParser\Node\Stmt\ClassMethod;
|
||||
use PhpParser\Node\Stmt\Expression;
|
||||
use PhpParser\Node\Stmt\Foreach_;
|
||||
use PhpParser\Node\Stmt\Return_;
|
||||
use PhpParser\Node\UnionType;
|
||||
use PHPStan\Reflection\FunctionVariantWithPhpDocs;
|
||||
|
@ -19,12 +19,12 @@ final class VersionResolver
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const PACKAGE_VERSION = '919f5d4ababb95e3cf9167926e81c65939d70bf3';
|
||||
public const PACKAGE_VERSION = '14081fecec9a9079c6ec279b383f8ade48f2b990';
|
||||
/**
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE_DATE = '2023-07-09 02:45:49';
|
||||
public const RELEASE_DATE = '2023-07-09 08:19:55';
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
|
2
vendor/autoload.php
vendored
2
vendor/autoload.php
vendored
@ -22,4 +22,4 @@ if (PHP_VERSION_ID < 50600) {
|
||||
|
||||
require_once __DIR__ . '/composer/autoload_real.php';
|
||||
|
||||
return ComposerAutoloaderInit1477a7c32fa2d182de5e68e06213fa7b::getLoader();
|
||||
return ComposerAutoloaderInit662f3875e42b24e53f1f3f3091f0575e::getLoader();
|
||||
|
10
vendor/composer/autoload_real.php
vendored
10
vendor/composer/autoload_real.php
vendored
@ -2,7 +2,7 @@
|
||||
|
||||
// autoload_real.php @generated by Composer
|
||||
|
||||
class ComposerAutoloaderInit1477a7c32fa2d182de5e68e06213fa7b
|
||||
class ComposerAutoloaderInit662f3875e42b24e53f1f3f3091f0575e
|
||||
{
|
||||
private static $loader;
|
||||
|
||||
@ -22,17 +22,17 @@ class ComposerAutoloaderInit1477a7c32fa2d182de5e68e06213fa7b
|
||||
return self::$loader;
|
||||
}
|
||||
|
||||
spl_autoload_register(array('ComposerAutoloaderInit1477a7c32fa2d182de5e68e06213fa7b', 'loadClassLoader'), true, true);
|
||||
spl_autoload_register(array('ComposerAutoloaderInit662f3875e42b24e53f1f3f3091f0575e', 'loadClassLoader'), true, true);
|
||||
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit1477a7c32fa2d182de5e68e06213fa7b', 'loadClassLoader'));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit662f3875e42b24e53f1f3f3091f0575e', 'loadClassLoader'));
|
||||
|
||||
require __DIR__ . '/autoload_static.php';
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInit1477a7c32fa2d182de5e68e06213fa7b::getInitializer($loader));
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInit662f3875e42b24e53f1f3f3091f0575e::getInitializer($loader));
|
||||
|
||||
$loader->setClassMapAuthoritative(true);
|
||||
$loader->register(true);
|
||||
|
||||
$filesToLoad = \Composer\Autoload\ComposerStaticInit1477a7c32fa2d182de5e68e06213fa7b::$files;
|
||||
$filesToLoad = \Composer\Autoload\ComposerStaticInit662f3875e42b24e53f1f3f3091f0575e::$files;
|
||||
$requireFile = \Closure::bind(static function ($fileIdentifier, $file) {
|
||||
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
||||
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
|
||||
|
8
vendor/composer/autoload_static.php
vendored
8
vendor/composer/autoload_static.php
vendored
@ -4,7 +4,7 @@
|
||||
|
||||
namespace Composer\Autoload;
|
||||
|
||||
class ComposerStaticInit1477a7c32fa2d182de5e68e06213fa7b
|
||||
class ComposerStaticInit662f3875e42b24e53f1f3f3091f0575e
|
||||
{
|
||||
public static $files = array (
|
||||
'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php',
|
||||
@ -3077,9 +3077,9 @@ class ComposerStaticInit1477a7c32fa2d182de5e68e06213fa7b
|
||||
public static function getInitializer(ClassLoader $loader)
|
||||
{
|
||||
return \Closure::bind(function () use ($loader) {
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit1477a7c32fa2d182de5e68e06213fa7b::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit1477a7c32fa2d182de5e68e06213fa7b::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInit1477a7c32fa2d182de5e68e06213fa7b::$classMap;
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit662f3875e42b24e53f1f3f3091f0575e::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit662f3875e42b24e53f1f3f3091f0575e::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInit662f3875e42b24e53f1f3f3091f0575e::$classMap;
|
||||
|
||||
}, null, ClassLoader::class);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user