Updated Rector to commit 65fd2014b2a4ac76f78f347c094a2a799dad7b16

65fd2014b2 Fix union type check of object (#4893)
This commit is contained in:
Tomas Votruba 2023-09-01 17:48:05 +00:00
parent 814e26534d
commit 060f298712
7 changed files with 18 additions and 17 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 ComposerAutoloaderInit1440499f2d0ebc3265cefc66f5f9e32f::getLoader();
return ComposerAutoloaderInit193a6f1cd412c403171ceba6c0fab0f4::getLoader();

View File

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

View File

@ -1812,12 +1812,12 @@
"source": {
"type": "git",
"url": "https:\/\/github.com\/rectorphp\/rector-downgrade-php.git",
"reference": "14abd370df7487a4b4c78cab2bae88aa533bc802"
"reference": "67928f6b436311dc51cc21088230803d5f4e2169"
},
"dist": {
"type": "zip",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-downgrade-php\/zipball\/14abd370df7487a4b4c78cab2bae88aa533bc802",
"reference": "14abd370df7487a4b4c78cab2bae88aa533bc802",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-downgrade-php\/zipball\/67928f6b436311dc51cc21088230803d5f4e2169",
"reference": "67928f6b436311dc51cc21088230803d5f4e2169",
"shasum": ""
},
"require": {
@ -1844,7 +1844,7 @@
"tomasvotruba\/unused-public": "^0.2",
"tracy\/tracy": "^2.10"
},
"time": "2023-09-01T17:08:53+00:00",
"time": "2023-09-01T17:44:36+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' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main fabb300'), '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' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 14abd37'), 'rector/rector-phpunit' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-phpunit', 'relative_install_path' => '../../rector-phpunit', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main e6dd6a0'), 'rector/rector-symfony' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-symfony', 'relative_install_path' => '../../rector-symfony', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 5c30ddf'));
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' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main fabb300'), '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' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 67928f6'), 'rector/rector-phpunit' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-phpunit', 'relative_install_path' => '../../rector-phpunit', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main e6dd6a0'), 'rector/rector-symfony' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-symfony', 'relative_install_path' => '../../rector-symfony', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 5c30ddf'));
private function __construct()
{
}

View File

@ -77,8 +77,9 @@ CODE_SAMPLE
}
/**
* @param Expression $node
* @return Node[]|null
*/
public function refactor(Node $node)
public function refactor(Node $node) : ?array
{
if (!$node->expr instanceof Assign) {
return null;