Updated Rector to commit 07859a15a3d53652689a6226de9a7cb09c4b89ee

07859a15a3 [ReadWrite] Remove parent attribute usage on JustReadExprAnalyzer (#4393)
This commit is contained in:
Tomas Votruba 2023-07-01 12:50:16 +00:00
parent ea79543156
commit 2d175bf66e
5 changed files with 13 additions and 20 deletions

View File

@ -4,8 +4,6 @@ declare (strict_types=1);
namespace Rector\ReadWrite\ReadNodeAnalyzer;
use PhpParser\Node\Expr;
use PhpParser\Node\Expr\ArrayDimFetch;
use PhpParser\Node\Stmt\Expression;
use Rector\NodeTypeResolver\Node\AttributeKey;
final class JustReadExprAnalyzer
{
@ -17,11 +15,6 @@ final class JustReadExprAnalyzer
if ($expr->getAttribute(AttributeKey::IS_ARG_VALUE) === \true) {
return \true;
}
$parentNode = $expr->getAttribute(AttributeKey::PARENT_NODE);
if ($parentNode instanceof ArrayDimFetch) {
return $parentNode->getAttribute(AttributeKey::IS_BEING_ASSIGNED) !== \true;
}
// assume it's used by default
return !$parentNode instanceof Expression;
return $expr->getAttribute(AttributeKey::IS_BEING_ASSIGNED) !== \true;
}
}

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = '38f4ad787ead53fc4e1c44c1a53ae17c3b6bf53a';
public const PACKAGE_VERSION = '07859a15a3d53652689a6226de9a7cb09c4b89ee';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2023-07-01 11:08:02';
public const RELEASE_DATE = '2023-07-01 19:45:16';
/**
* @var int
*/

2
vendor/autoload.php vendored
View File

@ -22,4 +22,4 @@ if (PHP_VERSION_ID < 50600) {
require_once __DIR__ . '/composer/autoload_real.php';
return ComposerAutoloaderInit810d3fc9e4a99e8b13a2b44068851393::getLoader();
return ComposerAutoloaderInitfe77f420b2474b6b77814c1859667290::getLoader();

View File

@ -2,7 +2,7 @@
// autoload_real.php @generated by Composer
class ComposerAutoloaderInit810d3fc9e4a99e8b13a2b44068851393
class ComposerAutoloaderInitfe77f420b2474b6b77814c1859667290
{
private static $loader;
@ -22,17 +22,17 @@ class ComposerAutoloaderInit810d3fc9e4a99e8b13a2b44068851393
return self::$loader;
}
spl_autoload_register(array('ComposerAutoloaderInit810d3fc9e4a99e8b13a2b44068851393', 'loadClassLoader'), true, true);
spl_autoload_register(array('ComposerAutoloaderInitfe77f420b2474b6b77814c1859667290', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
spl_autoload_unregister(array('ComposerAutoloaderInit810d3fc9e4a99e8b13a2b44068851393', 'loadClassLoader'));
spl_autoload_unregister(array('ComposerAutoloaderInitfe77f420b2474b6b77814c1859667290', 'loadClassLoader'));
require __DIR__ . '/autoload_static.php';
call_user_func(\Composer\Autoload\ComposerStaticInit810d3fc9e4a99e8b13a2b44068851393::getInitializer($loader));
call_user_func(\Composer\Autoload\ComposerStaticInitfe77f420b2474b6b77814c1859667290::getInitializer($loader));
$loader->setClassMapAuthoritative(true);
$loader->register(true);
$filesToLoad = \Composer\Autoload\ComposerStaticInit810d3fc9e4a99e8b13a2b44068851393::$files;
$filesToLoad = \Composer\Autoload\ComposerStaticInitfe77f420b2474b6b77814c1859667290::$files;
$requireFile = \Closure::bind(static function ($fileIdentifier, $file) {
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;

View File

@ -4,7 +4,7 @@
namespace Composer\Autoload;
class ComposerStaticInit810d3fc9e4a99e8b13a2b44068851393
class ComposerStaticInitfe77f420b2474b6b77814c1859667290
{
public static $files = array (
'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php',
@ -3099,9 +3099,9 @@ class ComposerStaticInit810d3fc9e4a99e8b13a2b44068851393
public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInit810d3fc9e4a99e8b13a2b44068851393::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit810d3fc9e4a99e8b13a2b44068851393::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit810d3fc9e4a99e8b13a2b44068851393::$classMap;
$loader->prefixLengthsPsr4 = ComposerStaticInitfe77f420b2474b6b77814c1859667290::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInitfe77f420b2474b6b77814c1859667290::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInitfe77f420b2474b6b77814c1859667290::$classMap;
}, null, ClassLoader::class);
}