Updated Rector to commit f4237155a27eca764b8d75775539edd9d773eee3

f4237155a2 [DowngradePhp81] Handle crash parent Arg is missing scope on DowngradeFirstClassCallableSyntaxRector (#2386)
This commit is contained in:
Tomas Votruba 2022-05-29 16:14:19 +00:00
parent 6e8480860a
commit 3b06db3e32
6 changed files with 23 additions and 19 deletions

View File

@ -4,6 +4,7 @@ declare (strict_types=1);
namespace Rector\NodeTypeResolver\PHPStan\Scope;
use PhpParser\Node;
use PhpParser\Node\Arg;
use PhpParser\Node\Expr;
use PhpParser\Node\Expr\Assign;
use PhpParser\Node\Name;
@ -129,6 +130,9 @@ final class PHPStanNodeScopeResolver
$scope = $formerMutatingScope ?? $this->scopeFactory->createFromFile($smartFileInfo);
// skip chain method calls, performance issue: https://github.com/phpstan/phpstan/issues/254
$nodeCallback = function (\PhpParser\Node $node, \PHPStan\Analyser\MutatingScope $mutatingScope) use(&$nodeCallback, $isScopeRefreshing) : void {
if ($node instanceof \PhpParser\Node\Arg) {
$node->value->setAttribute(\Rector\NodeTypeResolver\Node\AttributeKey::SCOPE, $mutatingScope);
}
if ($node instanceof \PhpParser\Node\Stmt\Foreach_) {
// decorate value as well
$node->valueVar->setAttribute(\Rector\NodeTypeResolver\Node\AttributeKey::SCOPE, $mutatingScope);

View File

@ -16,11 +16,11 @@ final class VersionResolver
/**
* @var string
*/
public const PACKAGE_VERSION = 'be3e2e1f9bad07daafa43189fdfcf31ab8579465';
public const PACKAGE_VERSION = 'f4237155a27eca764b8d75775539edd9d773eee3';
/**
* @var string
*/
public const RELEASE_DATE = '2022-05-29 16:08:36';
public const RELEASE_DATE = '2022-05-29 18:06:08';
/**
* @var string
*/

2
vendor/autoload.php vendored
View File

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

View File

@ -2,7 +2,7 @@
// autoload_real.php @generated by Composer
class ComposerAutoloaderInitf8f9a76f0d3c151f567c285c3278d58b
class ComposerAutoloaderInitbf411c11a6f9d2ca2da00534628b30ae
{
private static $loader;
@ -22,19 +22,19 @@ class ComposerAutoloaderInitf8f9a76f0d3c151f567c285c3278d58b
return self::$loader;
}
spl_autoload_register(array('ComposerAutoloaderInitf8f9a76f0d3c151f567c285c3278d58b', 'loadClassLoader'), true, true);
spl_autoload_register(array('ComposerAutoloaderInitbf411c11a6f9d2ca2da00534628b30ae', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
spl_autoload_unregister(array('ComposerAutoloaderInitf8f9a76f0d3c151f567c285c3278d58b', 'loadClassLoader'));
spl_autoload_unregister(array('ComposerAutoloaderInitbf411c11a6f9d2ca2da00534628b30ae', 'loadClassLoader'));
require __DIR__ . '/autoload_static.php';
call_user_func(\Composer\Autoload\ComposerStaticInitf8f9a76f0d3c151f567c285c3278d58b::getInitializer($loader));
call_user_func(\Composer\Autoload\ComposerStaticInitbf411c11a6f9d2ca2da00534628b30ae::getInitializer($loader));
$loader->setClassMapAuthoritative(true);
$loader->register(true);
$includeFiles = \Composer\Autoload\ComposerStaticInitf8f9a76f0d3c151f567c285c3278d58b::$files;
$includeFiles = \Composer\Autoload\ComposerStaticInitbf411c11a6f9d2ca2da00534628b30ae::$files;
foreach ($includeFiles as $fileIdentifier => $file) {
composerRequiref8f9a76f0d3c151f567c285c3278d58b($fileIdentifier, $file);
composerRequirebf411c11a6f9d2ca2da00534628b30ae($fileIdentifier, $file);
}
return $loader;
@ -46,7 +46,7 @@ class ComposerAutoloaderInitf8f9a76f0d3c151f567c285c3278d58b
* @param string $file
* @return void
*/
function composerRequiref8f9a76f0d3c151f567c285c3278d58b($fileIdentifier, $file)
function composerRequirebf411c11a6f9d2ca2da00534628b30ae($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 ComposerStaticInitf8f9a76f0d3c151f567c285c3278d58b
class ComposerStaticInitbf411c11a6f9d2ca2da00534628b30ae
{
public static $files = array (
'320cde22f66dd4f5d3fd621d3e88b98f' => __DIR__ . '/..' . '/symfony/polyfill-ctype/bootstrap.php',
@ -3872,9 +3872,9 @@ class ComposerStaticInitf8f9a76f0d3c151f567c285c3278d58b
public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInitf8f9a76f0d3c151f567c285c3278d58b::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInitf8f9a76f0d3c151f567c285c3278d58b::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInitf8f9a76f0d3c151f567c285c3278d58b::$classMap;
$loader->prefixLengthsPsr4 = ComposerStaticInitbf411c11a6f9d2ca2da00534628b30ae::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInitbf411c11a6f9d2ca2da00534628b30ae::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInitbf411c11a6f9d2ca2da00534628b30ae::$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('RectorPrefix20220529\AutoloadIncluder');
}
if (!class_exists('ComposerAutoloaderInitf8f9a76f0d3c151f567c285c3278d58b', false) && !interface_exists('ComposerAutoloaderInitf8f9a76f0d3c151f567c285c3278d58b', false) && !trait_exists('ComposerAutoloaderInitf8f9a76f0d3c151f567c285c3278d58b', false)) {
spl_autoload_call('RectorPrefix20220529\ComposerAutoloaderInitf8f9a76f0d3c151f567c285c3278d58b');
if (!class_exists('ComposerAutoloaderInitbf411c11a6f9d2ca2da00534628b30ae', false) && !interface_exists('ComposerAutoloaderInitbf411c11a6f9d2ca2da00534628b30ae', false) && !trait_exists('ComposerAutoloaderInitbf411c11a6f9d2ca2da00534628b30ae', false)) {
spl_autoload_call('RectorPrefix20220529\ComposerAutoloaderInitbf411c11a6f9d2ca2da00534628b30ae');
}
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('RectorPrefix20220529\Helmich\TypoScriptParser\Parser\AST\Statement');
@ -59,9 +59,9 @@ if (!function_exists('print_node')) {
return \RectorPrefix20220529\print_node(...func_get_args());
}
}
if (!function_exists('composerRequiref8f9a76f0d3c151f567c285c3278d58b')) {
function composerRequiref8f9a76f0d3c151f567c285c3278d58b() {
return \RectorPrefix20220529\composerRequiref8f9a76f0d3c151f567c285c3278d58b(...func_get_args());
if (!function_exists('composerRequirebf411c11a6f9d2ca2da00534628b30ae')) {
function composerRequirebf411c11a6f9d2ca2da00534628b30ae() {
return \RectorPrefix20220529\composerRequirebf411c11a6f9d2ca2da00534628b30ae(...func_get_args());
}
}
if (!function_exists('scanPath')) {