Skip to content

Conflicting Class Names when parsing a directory #2

@jc21

Description

@jc21

Ok I found another one when I was using it on a larger scale app, specifying the parent src directory to parse.

With namespaced classes like:

  • jc21\Api\Candidate
  • jc21\Model\Candidate

And then 2 more classes, each using one of the classes above, the generate throws the following error:

PHP Fatal error: Cannot use jc21\Model\Candidate as Candidate because the name is already in use in /path/to/jc21/Api/Migrate.php on line 12

I assume it's because something weird is happening with reflection?

Let me know if this example isn't clear enough.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions