mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-18 05:48:21 +01:00
Updated Rector to commit d119ad269de4bea207c53173a5b21614c72f790f
d119ad269d
Prevent uncaught class-not-found exceptions (#6160)
This commit is contained in:
parent
21475d5e56
commit
86a151128b
@ -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
|
||||
*/
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user