mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-18 22:08:00 +01:00
Updated Rector to commit 94cbadbac6df528e9061bdb68d56cf7f91295584
94cbadbac6
[ReadWrite] Reduce parent attribute on JustReadExprAnalyzer (#4289)
This commit is contained in:
parent
95bf4b7111
commit
2db1132a3e
@ -6,7 +6,6 @@ namespace Rector\ReadWrite\ReadNodeAnalyzer;
|
||||
use PhpParser\Node\Arg;
|
||||
use PhpParser\Node\Expr;
|
||||
use PhpParser\Node\Expr\ArrayDimFetch;
|
||||
use PhpParser\Node\Expr\Assign;
|
||||
use PhpParser\Node\Stmt\Expression;
|
||||
use PhpParser\Node\Stmt\Return_;
|
||||
use Rector\NodeTypeResolver\Node\AttributeKey;
|
||||
@ -22,11 +21,7 @@ final class JustReadExprAnalyzer
|
||||
return \true;
|
||||
}
|
||||
if ($parentNode instanceof ArrayDimFetch) {
|
||||
$parentParentNode = $parentNode->getAttribute(AttributeKey::PARENT_NODE);
|
||||
if (!$parentParentNode instanceof Assign) {
|
||||
return \true;
|
||||
}
|
||||
return $parentParentNode->var !== $parentNode;
|
||||
return $parentNode->getAttribute(AttributeKey::IS_BEING_ASSIGNED) !== \true;
|
||||
}
|
||||
// assume it's used by default
|
||||
return !$parentNode instanceof Expression;
|
||||
|
@ -19,12 +19,12 @@ final class VersionResolver
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const PACKAGE_VERSION = 'dfe3e6c75a43b4f9a08862bae3e90fd233270728';
|
||||
public const PACKAGE_VERSION = '94cbadbac6df528e9061bdb68d56cf7f91295584';
|
||||
/**
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE_DATE = '2023-06-19 23:26:08';
|
||||
public const RELEASE_DATE = '2023-06-20 00:03:57';
|
||||
/**
|
||||
* @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 ComposerAutoloaderInitc633a1a8221e937a8d90eb43cf287915::getLoader();
|
||||
return ComposerAutoloaderInit2d5a2d736603b65cfde3d3a2b85412e0::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 ComposerAutoloaderInitc633a1a8221e937a8d90eb43cf287915
|
||||
class ComposerAutoloaderInit2d5a2d736603b65cfde3d3a2b85412e0
|
||||
{
|
||||
private static $loader;
|
||||
|
||||
@ -22,17 +22,17 @@ class ComposerAutoloaderInitc633a1a8221e937a8d90eb43cf287915
|
||||
return self::$loader;
|
||||
}
|
||||
|
||||
spl_autoload_register(array('ComposerAutoloaderInitc633a1a8221e937a8d90eb43cf287915', 'loadClassLoader'), true, true);
|
||||
spl_autoload_register(array('ComposerAutoloaderInit2d5a2d736603b65cfde3d3a2b85412e0', 'loadClassLoader'), true, true);
|
||||
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInitc633a1a8221e937a8d90eb43cf287915', 'loadClassLoader'));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit2d5a2d736603b65cfde3d3a2b85412e0', 'loadClassLoader'));
|
||||
|
||||
require __DIR__ . '/autoload_static.php';
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInitc633a1a8221e937a8d90eb43cf287915::getInitializer($loader));
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInit2d5a2d736603b65cfde3d3a2b85412e0::getInitializer($loader));
|
||||
|
||||
$loader->setClassMapAuthoritative(true);
|
||||
$loader->register(true);
|
||||
|
||||
$filesToLoad = \Composer\Autoload\ComposerStaticInitc633a1a8221e937a8d90eb43cf287915::$files;
|
||||
$filesToLoad = \Composer\Autoload\ComposerStaticInit2d5a2d736603b65cfde3d3a2b85412e0::$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 ComposerStaticInitc633a1a8221e937a8d90eb43cf287915
|
||||
class ComposerStaticInit2d5a2d736603b65cfde3d3a2b85412e0
|
||||
{
|
||||
public static $files = array (
|
||||
'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php',
|
||||
@ -3095,9 +3095,9 @@ class ComposerStaticInitc633a1a8221e937a8d90eb43cf287915
|
||||
public static function getInitializer(ClassLoader $loader)
|
||||
{
|
||||
return \Closure::bind(function () use ($loader) {
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInitc633a1a8221e937a8d90eb43cf287915::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInitc633a1a8221e937a8d90eb43cf287915::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInitc633a1a8221e937a8d90eb43cf287915::$classMap;
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit2d5a2d736603b65cfde3d3a2b85412e0::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit2d5a2d736603b65cfde3d3a2b85412e0::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInit2d5a2d736603b65cfde3d3a2b85412e0::$classMap;
|
||||
|
||||
}, null, ClassLoader::class);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user