Skip to content

An error occurs when parsing code that uses traits. #37

@smeghead

Description

@smeghead

v0.3.0

An error occurs when loading a trait.

PHP Fatal error:  Uncaught TypeError: Cannot assign PhpParser\Node\Stmt\Trait_ to property Smeghead\PhpClassDiagram\Php\PhpClass::$syntax of type PhpParser\Node\Stmt\Class_|PhpParser\Node\Stmt\Interface_

Loading a file with traits defined shouldn't cause an error.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions