Updated Rector to commit 34e1cf13fdd613cb732d082cfcfa86bbdb7db5dc

34e1cf13fd NodeTypeResolver: cheap checks first in isObjectTypeOfObjectType() (#3621)
This commit is contained in:
Tomas Votruba 2023-04-16 15:11:00 +00:00
parent 4febb1e4a1
commit c333025ba2
5 changed files with 14 additions and 14 deletions

View File

@ -319,10 +319,10 @@ final class NodeTypeResolver
}
private function isObjectTypeOfObjectType(ObjectType $resolvedObjectType, ObjectType $requiredObjectType) : bool
{
if ($resolvedObjectType->isInstanceOf($requiredObjectType->getClassName())->yes()) {
if ($resolvedObjectType->getClassName() === $requiredObjectType->getClassName()) {
return \true;
}
if ($resolvedObjectType->getClassName() === $requiredObjectType->getClassName()) {
if ($resolvedObjectType->isInstanceOf($requiredObjectType->getClassName())->yes()) {
return \true;
}
if (!$this->reflectionProvider->hasClass($resolvedObjectType->getClassName())) {

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = '4f6de3f84ecb50aba2643f4b38dcfce6e04e1f4a';
public const PACKAGE_VERSION = '34e1cf13fdd613cb732d082cfcfa86bbdb7db5dc';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2023-04-16 17:38:58';
public const RELEASE_DATE = '2023-04-16 22:05: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 ComposerAutoloaderInitae71c35e22ac7e8ee8890094509ff7a5::getLoader();
return ComposerAutoloaderInit46a8477cf4c414caf42c1781db15ce30::getLoader();

View File

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