Updated Rector to commit 12ea285bcd922dbacaaed44a4819c7ee3477b1c2

12ea285bcd simplify PHPStanStaticTypeMapper (#3143)
This commit is contained in:
Tomas Votruba 2022-12-02 15:40:44 +00:00
parent 8ed08b4e24
commit c742d0130f
5 changed files with 15 additions and 18 deletions

View File

@ -40,15 +40,12 @@ final class PHPStanStaticTypeMapper
}
return $typeMapper->mapToPHPStanPhpDocTypeNode($type, $typeKind);
}
if ($type instanceof AccessoryNumericStringType) {
if ($type->isString()->yes()) {
return new IdentifierTypeNode('string');
}
if ($type instanceof HasMethodType) {
return new IdentifierTypeNode('object');
}
if ($type instanceof AccessoryLiteralStringType) {
return new IdentifierTypeNode('string');
}
if ($type instanceof ConditionalType) {
return new IdentifierTypeNode('mixed');
}

View File

@ -17,12 +17,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = '962dfc600487e2312c5a80fc675b57df29db5976';
public const PACKAGE_VERSION = '12ea285bcd922dbacaaed44a4819c7ee3477b1c2';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2022-12-02 15:10:47';
public const RELEASE_DATE = '2022-12-02 16:36:14';
/**
* @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 ComposerAutoloaderInitf968b5fa24014d0476d4e35854f18cf3::getLoader();
return ComposerAutoloaderInit871c16b9fd2cbd18b7fc152f559b8cba::getLoader();

View File

@ -2,7 +2,7 @@
// autoload_real.php @generated by Composer
class ComposerAutoloaderInitf968b5fa24014d0476d4e35854f18cf3
class ComposerAutoloaderInit871c16b9fd2cbd18b7fc152f559b8cba
{
private static $loader;
@ -22,19 +22,19 @@ class ComposerAutoloaderInitf968b5fa24014d0476d4e35854f18cf3
return self::$loader;
}
spl_autoload_register(array('ComposerAutoloaderInitf968b5fa24014d0476d4e35854f18cf3', 'loadClassLoader'), true, true);
spl_autoload_register(array('ComposerAutoloaderInit871c16b9fd2cbd18b7fc152f559b8cba', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
spl_autoload_unregister(array('ComposerAutoloaderInitf968b5fa24014d0476d4e35854f18cf3', 'loadClassLoader'));
spl_autoload_unregister(array('ComposerAutoloaderInit871c16b9fd2cbd18b7fc152f559b8cba', 'loadClassLoader'));
require __DIR__ . '/autoload_static.php';
call_user_func(\Composer\Autoload\ComposerStaticInitf968b5fa24014d0476d4e35854f18cf3::getInitializer($loader));
call_user_func(\Composer\Autoload\ComposerStaticInit871c16b9fd2cbd18b7fc152f559b8cba::getInitializer($loader));
$loader->setClassMapAuthoritative(true);
$loader->register(true);
$includeFiles = \Composer\Autoload\ComposerStaticInitf968b5fa24014d0476d4e35854f18cf3::$files;
$includeFiles = \Composer\Autoload\ComposerStaticInit871c16b9fd2cbd18b7fc152f559b8cba::$files;
foreach ($includeFiles as $fileIdentifier => $file) {
composerRequiref968b5fa24014d0476d4e35854f18cf3($fileIdentifier, $file);
composerRequire871c16b9fd2cbd18b7fc152f559b8cba($fileIdentifier, $file);
}
return $loader;
@ -46,7 +46,7 @@ class ComposerAutoloaderInitf968b5fa24014d0476d4e35854f18cf3
* @param string $file
* @return void
*/
function composerRequiref968b5fa24014d0476d4e35854f18cf3($fileIdentifier, $file)
function composerRequire871c16b9fd2cbd18b7fc152f559b8cba($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 ComposerStaticInitf968b5fa24014d0476d4e35854f18cf3
class ComposerStaticInit871c16b9fd2cbd18b7fc152f559b8cba
{
public static $files = array (
'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php',
@ -3023,9 +3023,9 @@ class ComposerStaticInitf968b5fa24014d0476d4e35854f18cf3
public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInitf968b5fa24014d0476d4e35854f18cf3::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInitf968b5fa24014d0476d4e35854f18cf3::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInitf968b5fa24014d0476d4e35854f18cf3::$classMap;
$loader->prefixLengthsPsr4 = ComposerStaticInit871c16b9fd2cbd18b7fc152f559b8cba::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit871c16b9fd2cbd18b7fc152f559b8cba::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit871c16b9fd2cbd18b7fc152f559b8cba::$classMap;
}, null, ClassLoader::class);
}