mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-31 12:42:05 +01:00
Updated Rector to commit 7f9704010043e95a107d2a5fd5112fcfc2c2990b
7f97040100
[Php80][AutoImport] Do not import iterable on AutoImport enabled on UnionTypesRector (#3374)
This commit is contained in:
parent
535ff0b0ef
commit
51f97eb7a9
@ -4,7 +4,7 @@ declare (strict_types=1);
|
||||
namespace Rector\PHPStanStaticTypeMapper\TypeMapper;
|
||||
|
||||
use PhpParser\Node;
|
||||
use PhpParser\Node\Name;
|
||||
use PhpParser\Node\Identifier;
|
||||
use PHPStan\PhpDocParser\Ast\Type\ArrayTypeNode;
|
||||
use PHPStan\PhpDocParser\Ast\Type\TypeNode;
|
||||
use PHPStan\PhpDocParser\Ast\Type\UnionTypeNode;
|
||||
@ -54,7 +54,7 @@ final class IterableTypeMapper implements TypeMapperInterface
|
||||
*/
|
||||
public function mapToPhpParserNode(Type $type, string $typeKind) : ?Node
|
||||
{
|
||||
return new Name('iterable');
|
||||
return new Identifier('iterable');
|
||||
}
|
||||
private function convertUnionArrayTypeNodesToArrayTypeOfUnionTypeNodes(UnionTypeNode $unionTypeNode) : BracketsAwareUnionTypeNode
|
||||
{
|
||||
|
@ -19,12 +19,12 @@ final class VersionResolver
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const PACKAGE_VERSION = '91ddd680c78eacc11006126398d64c4b97d38694';
|
||||
public const PACKAGE_VERSION = '7f9704010043e95a107d2a5fd5112fcfc2c2990b';
|
||||
/**
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE_DATE = '2023-02-12 18:31:43';
|
||||
public const RELEASE_DATE = '2023-02-13 16:40:01';
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
|
2
vendor/autoload.php
vendored
2
vendor/autoload.php
vendored
@ -22,4 +22,4 @@ if (PHP_VERSION_ID < 50600) {
|
||||
|
||||
require_once __DIR__ . '/composer/autoload_real.php';
|
||||
|
||||
return ComposerAutoloaderInit65c8f7a97195bdb8927e834e92ab1449::getLoader();
|
||||
return ComposerAutoloaderInit5e5f692b9734123f7d83eca9c7e54e68::getLoader();
|
||||
|
10
vendor/composer/autoload_real.php
vendored
10
vendor/composer/autoload_real.php
vendored
@ -2,7 +2,7 @@
|
||||
|
||||
// autoload_real.php @generated by Composer
|
||||
|
||||
class ComposerAutoloaderInit65c8f7a97195bdb8927e834e92ab1449
|
||||
class ComposerAutoloaderInit5e5f692b9734123f7d83eca9c7e54e68
|
||||
{
|
||||
private static $loader;
|
||||
|
||||
@ -22,17 +22,17 @@ class ComposerAutoloaderInit65c8f7a97195bdb8927e834e92ab1449
|
||||
return self::$loader;
|
||||
}
|
||||
|
||||
spl_autoload_register(array('ComposerAutoloaderInit65c8f7a97195bdb8927e834e92ab1449', 'loadClassLoader'), true, true);
|
||||
spl_autoload_register(array('ComposerAutoloaderInit5e5f692b9734123f7d83eca9c7e54e68', 'loadClassLoader'), true, true);
|
||||
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit65c8f7a97195bdb8927e834e92ab1449', 'loadClassLoader'));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit5e5f692b9734123f7d83eca9c7e54e68', 'loadClassLoader'));
|
||||
|
||||
require __DIR__ . '/autoload_static.php';
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInit65c8f7a97195bdb8927e834e92ab1449::getInitializer($loader));
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInit5e5f692b9734123f7d83eca9c7e54e68::getInitializer($loader));
|
||||
|
||||
$loader->setClassMapAuthoritative(true);
|
||||
$loader->register(true);
|
||||
|
||||
$filesToLoad = \Composer\Autoload\ComposerStaticInit65c8f7a97195bdb8927e834e92ab1449::$files;
|
||||
$filesToLoad = \Composer\Autoload\ComposerStaticInit5e5f692b9734123f7d83eca9c7e54e68::$files;
|
||||
$requireFile = \Closure::bind(static function ($fileIdentifier, $file) {
|
||||
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
||||
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
|
||||
|
8
vendor/composer/autoload_static.php
vendored
8
vendor/composer/autoload_static.php
vendored
@ -4,7 +4,7 @@
|
||||
|
||||
namespace Composer\Autoload;
|
||||
|
||||
class ComposerStaticInit65c8f7a97195bdb8927e834e92ab1449
|
||||
class ComposerStaticInit5e5f692b9734123f7d83eca9c7e54e68
|
||||
{
|
||||
public static $files = array (
|
||||
'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php',
|
||||
@ -3099,9 +3099,9 @@ class ComposerStaticInit65c8f7a97195bdb8927e834e92ab1449
|
||||
public static function getInitializer(ClassLoader $loader)
|
||||
{
|
||||
return \Closure::bind(function () use ($loader) {
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit65c8f7a97195bdb8927e834e92ab1449::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit65c8f7a97195bdb8927e834e92ab1449::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInit65c8f7a97195bdb8927e834e92ab1449::$classMap;
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit5e5f692b9734123f7d83eca9c7e54e68::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit5e5f692b9734123f7d83eca9c7e54e68::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInit5e5f692b9734123f7d83eca9c7e54e68::$classMap;
|
||||
|
||||
}, null, ClassLoader::class);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user