Updated Rector to commit 7078b51a7cfe02d85474a38192caf797beedcfd6

7078b51a7c [TypeDeclaration] Add ReturnTypeFromStrictFluentReturnRector (#4890)
This commit is contained in:
Tomas Votruba 2023-08-31 19:21:20 +00:00
parent 8be31113be
commit eeab658669
7 changed files with 16 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 ComposerAutoloaderInitc8f25d1081a53688d7f33993bb4d0220::getLoader();
return ComposerAutoloaderInit1ae8d8f1dea3613379cd20e14ae5d266::getLoader();

View File

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

View File

@ -1812,12 +1812,12 @@
"source": {
"type": "git",
"url": "https:\/\/github.com\/rectorphp\/rector-downgrade-php.git",
"reference": "910d9423aaf0b2536ce8ff7ba3d6751a8ca0346a"
"reference": "a95078bf047f03f4de0f07447980963c15bf870b"
},
"dist": {
"type": "zip",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-downgrade-php\/zipball\/910d9423aaf0b2536ce8ff7ba3d6751a8ca0346a",
"reference": "910d9423aaf0b2536ce8ff7ba3d6751a8ca0346a",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-downgrade-php\/zipball\/a95078bf047f03f4de0f07447980963c15bf870b",
"reference": "a95078bf047f03f4de0f07447980963c15bf870b",
"shasum": ""
},
"require": {
@ -1843,7 +1843,7 @@
"tomasvotruba\/type-coverage": "^0.2",
"tomasvotruba\/unused-public": "^0.1"
},
"time": "2023-08-31T18:58:17+00:00",
"time": "2023-08-31T19:17:48+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 910d942'), '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 0f327da'));
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 a95078b'), '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 0f327da'));
private function __construct()
{
}

View File

@ -78,7 +78,6 @@ CODE_SAMPLE
}
$staticType = new StaticType($classReflection);
$hasChanged = \false;
$hasParamChanged = \false;
foreach ($node->getParams() as $param) {
$hasParamChanged = $this->phpDocFromTypeDeclarationDecorator->decorateParamWithSpecificType($param, $node, $staticType);
if ($hasParamChanged) {