BossBey File Manager
PHP:
7.4.33
OS:
Linux
User:
root
Root
/
opt
/
cpanel
/
ea-wappspector
/
vendor
/
rector
/
rector
/
src
/
Reflection
📤 Upload
📝 New File
📁 New Folder
Close
Editing: ClassReflectionAnalyzer.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(); } }
Save
Cancel