Updated Rector to commit 9e8880bc4acd34095b0879dbcb514133f1f9a01e

9e8880bc4a Cherry-pick StmtKeyNodeVisitor check not Node (#3883)
This commit is contained in:
Tomas Votruba 2023-05-17 19:54:55 +00:00
parent 219ab6ff69
commit 765b0f35a3
5 changed files with 17 additions and 14 deletions

View File

@ -52,8 +52,8 @@ final class StmtKeyNodeVisitor extends NodeVisitorAbstract implements ScopeResol
return null;
}
$parentNode = $node->getAttribute(AttributeKey::PARENT_NODE);
// parent node of Stmt must be StmtsAwareInterface, except on top level namespace or file without namespace
if (!$parentNode instanceof StmtsAwareInterface) {
// parent node of Stmt must be Node, except on top level namespace or file without namespace
if (!$parentNode instanceof Node) {
// on __construct(), $file not yet a File object
$file = $this->currentFileProvider->getFile();
if ($file instanceof File) {
@ -64,6 +64,9 @@ final class StmtKeyNodeVisitor extends NodeVisitorAbstract implements ScopeResol
}
return null;
}
if (!$parentNode instanceof StmtsAwareInterface) {
return null;
}
// re-index stmt key under parent node
$this->setStmtKeyAttribute($parentNode);
return null;

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = 'ae78ef15d1d27bd5f9df02457d02a0fb7d7c3c20';
public const PACKAGE_VERSION = '9e8880bc4acd34095b0879dbcb514133f1f9a01e';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2023-05-17 15:34:25';
public const RELEASE_DATE = '2023-05-17 19:50:59';
/**
* @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 ComposerAutoloaderInit49c830272ef972073a73965cec1d97e3::getLoader();
return ComposerAutoloaderInitb3433111e460b0d0b9d66ca37dc2d1f5::getLoader();

View File

@ -2,7 +2,7 @@
// autoload_real.php @generated by Composer
class ComposerAutoloaderInit49c830272ef972073a73965cec1d97e3
class ComposerAutoloaderInitb3433111e460b0d0b9d66ca37dc2d1f5
{
private static $loader;
@ -22,17 +22,17 @@ class ComposerAutoloaderInit49c830272ef972073a73965cec1d97e3
return self::$loader;
}
spl_autoload_register(array('ComposerAutoloaderInit49c830272ef972073a73965cec1d97e3', 'loadClassLoader'), true, true);
spl_autoload_register(array('ComposerAutoloaderInitb3433111e460b0d0b9d66ca37dc2d1f5', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
spl_autoload_unregister(array('ComposerAutoloaderInit49c830272ef972073a73965cec1d97e3', 'loadClassLoader'));
spl_autoload_unregister(array('ComposerAutoloaderInitb3433111e460b0d0b9d66ca37dc2d1f5', 'loadClassLoader'));
require __DIR__ . '/autoload_static.php';
call_user_func(\Composer\Autoload\ComposerStaticInit49c830272ef972073a73965cec1d97e3::getInitializer($loader));
call_user_func(\Composer\Autoload\ComposerStaticInitb3433111e460b0d0b9d66ca37dc2d1f5::getInitializer($loader));
$loader->setClassMapAuthoritative(true);
$loader->register(true);
$filesToLoad = \Composer\Autoload\ComposerStaticInit49c830272ef972073a73965cec1d97e3::$files;
$filesToLoad = \Composer\Autoload\ComposerStaticInitb3433111e460b0d0b9d66ca37dc2d1f5::$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 ComposerStaticInit49c830272ef972073a73965cec1d97e3
class ComposerStaticInitb3433111e460b0d0b9d66ca37dc2d1f5
{
public static $files = array (
'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php',
@ -3113,9 +3113,9 @@ class ComposerStaticInit49c830272ef972073a73965cec1d97e3
public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInit49c830272ef972073a73965cec1d97e3::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit49c830272ef972073a73965cec1d97e3::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit49c830272ef972073a73965cec1d97e3::$classMap;
$loader->prefixLengthsPsr4 = ComposerStaticInitb3433111e460b0d0b9d66ca37dc2d1f5::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInitb3433111e460b0d0b9d66ca37dc2d1f5::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInitb3433111e460b0d0b9d66ca37dc2d1f5::$classMap;
}, null, ClassLoader::class);
}