Updated Rector to commit d61eea4aca1d6269f7ba75f5facaf6d742d3e51e

d61eea4aca [Core] Ensure parent is Node on AbstractScopeAwareRector (#2317)
This commit is contained in:
Tomas Votruba 2022-05-15 10:32:22 +00:00
parent 98b2db6b30
commit c99e1d9cdf
6 changed files with 20 additions and 20 deletions

View File

@ -16,11 +16,11 @@ final class VersionResolver
/**
* @var string
*/
public const PACKAGE_VERSION = '70f10c9c779e5f82d9464f8e9e5ab0e3e12977c9';
public const PACKAGE_VERSION = 'd61eea4aca1d6269f7ba75f5facaf6d742d3e51e';
/**
* @var string
*/
public const RELEASE_DATE = '2022-05-15 12:07:37';
public const RELEASE_DATE = '2022-05-15 12:24:33';
/**
* @var string
*/

View File

@ -23,7 +23,7 @@ abstract class AbstractScopeAwareRector extends \Rector\Core\Rector\AbstractRect
$scope = $node->getAttribute(\Rector\NodeTypeResolver\Node\AttributeKey::SCOPE);
if (!$scope instanceof \PHPStan\Analyser\Scope) {
$parent = $node->getAttribute(\Rector\NodeTypeResolver\Node\AttributeKey::PARENT_NODE);
$errorMessage = \sprintf('Scope not available on "%s" node with parent node of "%s", but is required by a refactorWithScope() method of "%s" rule. Fix scope refresh on changed nodes first', \get_class($node), \get_class($parent), static::class);
$errorMessage = \sprintf('Scope not available on "%s" node with parent node of "%s", but is required by a refactorWithScope() method of "%s" rule. Fix scope refresh on changed nodes first', \get_class($node), $parent instanceof \PhpParser\Node ? \get_class($parent) : null, static::class);
throw new \Rector\Core\Exception\ShouldNotHappenException($errorMessage);
}
return $this->refactorWithScope($node, $scope);

2
vendor/autoload.php vendored
View File

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

View File

@ -2,7 +2,7 @@
// autoload_real.php @generated by Composer
class ComposerAutoloaderInit369282be6b1ddd3569782daf2940b5a8
class ComposerAutoloaderInit404008f2d0930cde0722d621a8e00494
{
private static $loader;
@ -22,19 +22,19 @@ class ComposerAutoloaderInit369282be6b1ddd3569782daf2940b5a8
return self::$loader;
}
spl_autoload_register(array('ComposerAutoloaderInit369282be6b1ddd3569782daf2940b5a8', 'loadClassLoader'), true, true);
spl_autoload_register(array('ComposerAutoloaderInit404008f2d0930cde0722d621a8e00494', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
spl_autoload_unregister(array('ComposerAutoloaderInit369282be6b1ddd3569782daf2940b5a8', 'loadClassLoader'));
spl_autoload_unregister(array('ComposerAutoloaderInit404008f2d0930cde0722d621a8e00494', 'loadClassLoader'));
require __DIR__ . '/autoload_static.php';
call_user_func(\Composer\Autoload\ComposerStaticInit369282be6b1ddd3569782daf2940b5a8::getInitializer($loader));
call_user_func(\Composer\Autoload\ComposerStaticInit404008f2d0930cde0722d621a8e00494::getInitializer($loader));
$loader->setClassMapAuthoritative(true);
$loader->register(true);
$includeFiles = \Composer\Autoload\ComposerStaticInit369282be6b1ddd3569782daf2940b5a8::$files;
$includeFiles = \Composer\Autoload\ComposerStaticInit404008f2d0930cde0722d621a8e00494::$files;
foreach ($includeFiles as $fileIdentifier => $file) {
composerRequire369282be6b1ddd3569782daf2940b5a8($fileIdentifier, $file);
composerRequire404008f2d0930cde0722d621a8e00494($fileIdentifier, $file);
}
return $loader;
@ -46,7 +46,7 @@ class ComposerAutoloaderInit369282be6b1ddd3569782daf2940b5a8
* @param string $file
* @return void
*/
function composerRequire369282be6b1ddd3569782daf2940b5a8($fileIdentifier, $file)
function composerRequire404008f2d0930cde0722d621a8e00494($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 ComposerStaticInit369282be6b1ddd3569782daf2940b5a8
class ComposerStaticInit404008f2d0930cde0722d621a8e00494
{
public static $files = array (
'320cde22f66dd4f5d3fd621d3e88b98f' => __DIR__ . '/..' . '/symfony/polyfill-ctype/bootstrap.php',
@ -3898,9 +3898,9 @@ class ComposerStaticInit369282be6b1ddd3569782daf2940b5a8
public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInit369282be6b1ddd3569782daf2940b5a8::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit369282be6b1ddd3569782daf2940b5a8::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit369282be6b1ddd3569782daf2940b5a8::$classMap;
$loader->prefixLengthsPsr4 = ComposerStaticInit404008f2d0930cde0722d621a8e00494::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit404008f2d0930cde0722d621a8e00494::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit404008f2d0930cde0722d621a8e00494::$classMap;
}, null, ClassLoader::class);
}

View File

@ -9,8 +9,8 @@ $loader = require_once __DIR__.'/autoload.php';
if (!class_exists('AutoloadIncluder', false) && !interface_exists('AutoloadIncluder', false) && !trait_exists('AutoloadIncluder', false)) {
spl_autoload_call('RectorPrefix20220515\AutoloadIncluder');
}
if (!class_exists('ComposerAutoloaderInit369282be6b1ddd3569782daf2940b5a8', false) && !interface_exists('ComposerAutoloaderInit369282be6b1ddd3569782daf2940b5a8', false) && !trait_exists('ComposerAutoloaderInit369282be6b1ddd3569782daf2940b5a8', false)) {
spl_autoload_call('RectorPrefix20220515\ComposerAutoloaderInit369282be6b1ddd3569782daf2940b5a8');
if (!class_exists('ComposerAutoloaderInit404008f2d0930cde0722d621a8e00494', false) && !interface_exists('ComposerAutoloaderInit404008f2d0930cde0722d621a8e00494', false) && !trait_exists('ComposerAutoloaderInit404008f2d0930cde0722d621a8e00494', false)) {
spl_autoload_call('RectorPrefix20220515\ComposerAutoloaderInit404008f2d0930cde0722d621a8e00494');
}
if (!class_exists('Helmich\TypoScriptParser\Parser\AST\Statement', false) && !interface_exists('Helmich\TypoScriptParser\Parser\AST\Statement', false) && !trait_exists('Helmich\TypoScriptParser\Parser\AST\Statement', false)) {
spl_autoload_call('RectorPrefix20220515\Helmich\TypoScriptParser\Parser\AST\Statement');
@ -59,9 +59,9 @@ if (!function_exists('print_node')) {
return \RectorPrefix20220515\print_node(...func_get_args());
}
}
if (!function_exists('composerRequire369282be6b1ddd3569782daf2940b5a8')) {
function composerRequire369282be6b1ddd3569782daf2940b5a8() {
return \RectorPrefix20220515\composerRequire369282be6b1ddd3569782daf2940b5a8(...func_get_args());
if (!function_exists('composerRequire404008f2d0930cde0722d621a8e00494')) {
function composerRequire404008f2d0930cde0722d621a8e00494() {
return \RectorPrefix20220515\composerRequire404008f2d0930cde0722d621a8e00494(...func_get_args());
}
}
if (!function_exists('scanPath')) {