Updated Rector to commit 52e213f80055305f3d1d46caf967c9834de09e24

52e213f800 [TypeDeclaration] Handle infinite loop on array_reverse with index on AddMethodCallBasedStrictParamTypeRector on php8+ feature (#3678)
This commit is contained in:
Tomas Votruba 2023-04-24 11:51:04 +00:00
parent a93a36635a
commit d13bb4f126
5 changed files with 16 additions and 12 deletions

View File

@ -55,7 +55,11 @@ final class ClassMethodParamTypeCompleter
public function complete(ClassMethod $classMethod, array $classParameterTypes, int $maxUnionTypes) : ?ClassMethod
{
$hasChanged = \false;
$totalTypes = \count($classParameterTypes);
foreach ($classParameterTypes as $position => $argumentStaticType) {
if ($totalTypes > 1 && $argumentStaticType instanceof UnionType) {
return null;
}
/** @var Type $argumentStaticType */
if ($this->shouldSkipArgumentStaticType($classMethod, $argumentStaticType, $position, $maxUnionTypes)) {
continue;

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = 'fb89e317c52fb8a16e2db18edb80172adb17014e';
public const PACKAGE_VERSION = '52e213f80055305f3d1d46caf967c9834de09e24';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2023-04-24 12:12:45';
public const RELEASE_DATE = '2023-04-24 18:46:55';
/**
* @var int
*/

2
vendor/autoload.php vendored
View File

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

View File

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