diff --git a/packages/NodeTypeResolver/NodeTypeResolver.php b/packages/NodeTypeResolver/NodeTypeResolver.php index e947450fbf0..7c0410d47ed 100644 --- a/packages/NodeTypeResolver/NodeTypeResolver.php +++ b/packages/NodeTypeResolver/NodeTypeResolver.php @@ -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())) { diff --git a/src/Application/VersionResolver.php b/src/Application/VersionResolver.php index ea108d5270e..b71baadf148 100644 --- a/src/Application/VersionResolver.php +++ b/src/Application/VersionResolver.php @@ -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 */ diff --git a/vendor/autoload.php b/vendor/autoload.php index eab2b440a1b..247775f119f 100644 --- a/vendor/autoload.php +++ b/vendor/autoload.php @@ -22,4 +22,4 @@ if (PHP_VERSION_ID < 50600) { require_once __DIR__ . '/composer/autoload_real.php'; -return ComposerAutoloaderInitae71c35e22ac7e8ee8890094509ff7a5::getLoader(); +return ComposerAutoloaderInit46a8477cf4c414caf42c1781db15ce30::getLoader(); diff --git a/vendor/composer/autoload_real.php b/vendor/composer/autoload_real.php index 65a9541b73b..2fb00e55f95 100644 --- a/vendor/composer/autoload_real.php +++ b/vendor/composer/autoload_real.php @@ -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; diff --git a/vendor/composer/autoload_static.php b/vendor/composer/autoload_static.php index c8ecdc22533..8eaec62964e 100644 --- a/vendor/composer/autoload_static.php +++ b/vendor/composer/autoload_static.php @@ -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); }