This repository was archived by the owner on Jan 29, 2020. It is now read-only.
This repository was archived by the owner on Jan 29, 2020. It is now read-only.
ClassGenerator::fromReflection() breaks extends and implements #64
Closed
Description
It is not possible to load a class that that extends or implements other classes without breaking the fully qualified names of the classes.
For example, if you load a reflection of this class
namespace Sample\ReflectionIssue;
class SampleClass
extends \Sample\ReflectionIssue\ExtendableClass
implements \Sample\ReflectionIssue\InterfaceClass
{ ... }
via $foo = ClassGenerator::fromReflection(ClassReflection(new \Sample\ReflectionIssue\SampleClass()));
it will generate the following (invalid) output:
namespace Sample\ReflectionIssue;
class SampleClass
extends Sample\ReflectionIssue\ExtendableClass
implements Sample\ReflectionIssue\InterfaceClass
{ ... }
It's missing the leading backslash in front of the fully qualified class name.
Metadata
Metadata
Assignees
Labels
No labels