Updated Rector to commit 2efca7308210405e65198d44a7521f84940fdd21

2efca73082 [TypeDeclaration] Handle regression multiple params no longer working on AddMethodCallBasedStrictParamTypeRector (#3681)
This commit is contained in:
Tomas Votruba 2023-04-24 17:11:45 +00:00
parent d13bb4f126
commit 701d429812
6 changed files with 13 additions and 17 deletions

View File

@ -465,6 +465,6 @@ final class UnionTypeMapper implements TypeMapperInterface
if (\count($unionType->getTypes()) === \count($phpParserUnionType->types)) {
return $phpParserUnionType;
}
return $this->phpStanStaticTypeMapper->mapToPhpParserNode($unionType, $typeKind);
return null;
}
}

View File

@ -55,11 +55,7 @@ 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 = '52e213f80055305f3d1d46caf967c9834de09e24';
public const PACKAGE_VERSION = '2efca7308210405e65198d44a7521f84940fdd21';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2023-04-24 18:46:55';
public const RELEASE_DATE = '2023-04-25 00:07:02';
/**
* @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 ComposerAutoloaderInitd6d2b1a2f02d2152c66acb7e8d3d6daa::getLoader();
return ComposerAutoloaderInit8de18e8e1d01102b29108278c481d5ca::getLoader();

View File

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