mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-18 05:48:21 +01:00
Updated Rector to commit 9e8880bc4acd34095b0879dbcb514133f1f9a01e
9e8880bc4a
Cherry-pick StmtKeyNodeVisitor check not Node (#3883)
This commit is contained in:
parent
219ab6ff69
commit
765b0f35a3
@ -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;
|
||||
|
@ -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
2
vendor/autoload.php
vendored
@ -22,4 +22,4 @@ if (PHP_VERSION_ID < 50600) {
|
||||
|
||||
require_once __DIR__ . '/composer/autoload_real.php';
|
||||
|
||||
return ComposerAutoloaderInit49c830272ef972073a73965cec1d97e3::getLoader();
|
||||
return ComposerAutoloaderInitb3433111e460b0d0b9d66ca37dc2d1f5::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 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;
|
||||
|
8
vendor/composer/autoload_static.php
vendored
8
vendor/composer/autoload_static.php
vendored
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user