Updated Rector to commit d119ad269de4bea207c53173a5b21614c72f790f

d119ad269d Prevent uncaught class-not-found exceptions (#6160)
This commit is contained in:
Tomas Votruba 2024-07-18 14:36:08 +00:00
parent 21475d5e56
commit 86a151128b
2 changed files with 8 additions and 4 deletions

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = 'a3f0b1f21f60b21e4f357d3c7e6187b14bfa3ed2';
public const PACKAGE_VERSION = 'd119ad269de4bea207c53173a5b21614c72f790f';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2024-07-18 21:25:34';
public const RELEASE_DATE = '2024-07-18 21:33:41';
/**
* @var int
*/

View File

@ -131,7 +131,9 @@ final class IdentifierPhpDocTypeMapper implements PhpDocTypeMapperInterface
// parent outside the class, e.g. in a function
return new MixedType();
}
/** @var ClassReflection $classReflection */
if (!$this->reflectionProvider->hasClass($className)) {
return new MixedType();
}
$classReflection = $this->reflectionProvider->getClass($className);
$parentClassReflection = $classReflection->getParentClass();
if (!$parentClassReflection instanceof ClassReflection) {
@ -149,7 +151,9 @@ final class IdentifierPhpDocTypeMapper implements PhpDocTypeMapperInterface
// static outside the class, e.g. in a function
return new MixedType();
}
/** @var ClassReflection $classReflection */
if (!$this->reflectionProvider->hasClass($className)) {
return new MixedType();
}
$classReflection = $this->reflectionProvider->getClass($className);
return new StaticType($classReflection);
}