Updated Rector to commit 535ef5909272fe83d43f5bcf997d74222ac25cdc

535ef59092 Revert "[Performance][NodeTypeResolver] Remove $mutatingScope->enterCatchType() usage on PHPStanNodeScopeResolver (#5045)" (#5046)
This commit is contained in:
Tomas Votruba 2023-09-19 09:12:48 +00:00
parent e31de99f8d
commit 42058c255b
7 changed files with 19 additions and 20 deletions

2
vendor/autoload.php vendored
View File

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

View File

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

View File

@ -1808,12 +1808,12 @@
"source": {
"type": "git",
"url": "https:\/\/github.com\/rectorphp\/rector-downgrade-php.git",
"reference": "3782784fc66a6e03b1d94c532268a49ac2d68392"
"reference": "78f3bdf51768c94ba5e186a3d55b530a15c4b0b8"
},
"dist": {
"type": "zip",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-downgrade-php\/zipball\/3782784fc66a6e03b1d94c532268a49ac2d68392",
"reference": "3782784fc66a6e03b1d94c532268a49ac2d68392",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-downgrade-php\/zipball\/78f3bdf51768c94ba5e186a3d55b530a15c4b0b8",
"reference": "78f3bdf51768c94ba5e186a3d55b530a15c4b0b8",
"shasum": ""
},
"require": {
@ -1840,7 +1840,7 @@
"tomasvotruba\/unused-public": "^0.2",
"tracy\/tracy": "^2.10"
},
"time": "2023-09-13T15:04:17+00:00",
"time": "2023-09-19T09:08:01+00:00",
"default-branch": true,
"type": "rector-extension",
"extra": {

File diff suppressed because one or more lines are too long

View File

@ -9,7 +9,7 @@ namespace Rector\RectorInstaller;
*/
final class GeneratedConfig
{
public const EXTENSIONS = array('rector/rector-doctrine' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-doctrine', 'relative_install_path' => '../../rector-doctrine', 'extra' => NULL, 'version' => 'dev-main 4b25180'), 'rector/rector-downgrade-php' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-downgrade-php', 'relative_install_path' => '../../rector-downgrade-php', 'extra' => NULL, 'version' => 'dev-main 3782784'), 'rector/rector-phpunit' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-phpunit', 'relative_install_path' => '../../rector-phpunit', 'extra' => NULL, 'version' => 'dev-main be3974a'), 'rector/rector-symfony' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-symfony', 'relative_install_path' => '../../rector-symfony', 'extra' => NULL, 'version' => 'dev-main 09ddd39'));
public const EXTENSIONS = array('rector/rector-doctrine' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-doctrine', 'relative_install_path' => '../../rector-doctrine', 'extra' => NULL, 'version' => 'dev-main 4b25180'), 'rector/rector-downgrade-php' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-downgrade-php', 'relative_install_path' => '../../rector-downgrade-php', 'extra' => NULL, 'version' => 'dev-main 78f3bdf'), 'rector/rector-phpunit' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-phpunit', 'relative_install_path' => '../../rector-phpunit', 'extra' => NULL, 'version' => 'dev-main be3974a'), 'rector/rector-symfony' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-symfony', 'relative_install_path' => '../../rector-symfony', 'extra' => NULL, 'version' => 'dev-main 09ddd39'));
private function __construct()
{
}

View File

@ -8,14 +8,13 @@ use PhpParser\Node\Arg;
use PhpParser\Node\Expr\FuncCall;
use PhpParser\Node\Expr\Ternary;
use PhpParser\Node\Scalar\String_;
use PHPStan\Analyser\Scope;
use Rector\Core\Rector\AbstractScopeAwareRector;
use Rector\Core\Rector\AbstractRector;
use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample;
use Symplify\RuleDocGenerator\ValueObject\RuleDefinition;
/**
* @see \Rector\Tests\DowngradePhp74\Rector\FuncCall\DowngradeProcOpenArrayCommandArgRector\DowngradeProcOpenArrayCommandArgRectorTest
*/
final class DowngradeProcOpenArrayCommandArgRector extends AbstractScopeAwareRector
final class DowngradeProcOpenArrayCommandArgRector extends AbstractRector
{
public function getRuleDefinition() : RuleDefinition
{
@ -37,7 +36,7 @@ CODE_SAMPLE
/**
* @param FuncCall $node
*/
public function refactorWithScope(Node $node, Scope $scope) : ?FuncCall
public function refactor(Node $node) : ?FuncCall
{
if (!$this->isName($node, 'proc_open')) {
return null;