mirror of
https://github.com/rectorphp/rector.git
synced 2024-05-29 15:30:51 +00:00
7e7a2f067a
476cfb00cb
disable fallback for now
19 lines
481 B
PHP
19 lines
481 B
PHP
<?php
|
|
|
|
declare (strict_types=1);
|
|
namespace Rector\Reflection;
|
|
|
|
use PHPStan\Reflection\ClassReflection;
|
|
use ReflectionEnum;
|
|
final class ClassReflectionAnalyzer
|
|
{
|
|
public function resolveParentClassName(ClassReflection $classReflection) : ?string
|
|
{
|
|
$nativeReflection = $classReflection->getNativeReflection();
|
|
if ($nativeReflection instanceof ReflectionEnum) {
|
|
return null;
|
|
}
|
|
return $nativeReflection->getParentClassName();
|
|
}
|
|
}
|