Updated Rector to commit 3962227709fda9312f07d6a516a1ee405b392489

3962227709 [NodeTypeResolver] Reduce duplicated Scope fill on FuncCall (#4428)
This commit is contained in:
Tomas Votruba 2023-07-06 20:17:30 +00:00
parent 7f5bbceea9
commit e3e96f6f96
7 changed files with 16 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 ComposerAutoloaderInita8d21e99d7187362404e17256fd9714c::getLoader();
return ComposerAutoloaderInit9f8bf1ec5521e17cec29227ea449559a::getLoader();

View File

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

View File

@ -1917,12 +1917,12 @@
"source": {
"type": "git",
"url": "https:\/\/github.com\/rectorphp\/rector-doctrine.git",
"reference": "fc2dbbd5540515c6e641da406789c24400149013"
"reference": "8afdccb30c1ab88b2d159470fa9ac8d56dee6362"
},
"dist": {
"type": "zip",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-doctrine\/zipball\/fc2dbbd5540515c6e641da406789c24400149013",
"reference": "fc2dbbd5540515c6e641da406789c24400149013",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-doctrine\/zipball\/8afdccb30c1ab88b2d159470fa9ac8d56dee6362",
"reference": "8afdccb30c1ab88b2d159470fa9ac8d56dee6362",
"shasum": ""
},
"require": {
@ -1947,7 +1947,7 @@
"tomasvotruba\/type-coverage": "^0.2",
"tomasvotruba\/unused-public": "^0.1"
},
"time": "2023-06-26T07:35:13+00:00",
"time": "2023-07-06T20:12:24+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 fc2dbbd'), '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 57ad03c'), '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 c6bf48b'), '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 23da46c'));
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 8afdccb'), '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 57ad03c'), '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 c6bf48b'), '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 23da46c'));
private function __construct()
{
}

View File

@ -29,10 +29,6 @@ final class PropertyTypeManipulator
}
public function changePropertyType(Property $property, string $oldClass, string $newClass) : void
{
if ($property->type !== null) {
// fix later
throw new NotImplementedYetException();
}
$phpDocInfo = $this->phpDocInfoFactory->createFromNodeOrEmpty($property);
$oldToNewTypes = [new OldToNewType(new FullyQualifiedObjectType($oldClass), new FullyQualifiedObjectType($newClass))];
$this->docBlockClassRenamer->renamePhpDocType($phpDocInfo, $oldToNewTypes);