ergebnis / classy

🔍 Provides a composer package with a finder for classy constructs (classes, enums, interfaces, and traits).

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Classes in single level namespace not resovled correctly for PHP 8

abenerd opened this issue · comments

Steps required to reproduce the problem

  1. Run PHP 8
  2. Have class with single level namespace such as App
  3. Try to resolve using Constructs::fromDirectory($directory)
  4. Check Construct name

Example Repo is under: https://github.com/abenettt/classy-namespace-error

Expected Result

  • FQCN to be resolved correctly and tests to pass

Actual Result

  • FQCN is resolved as name of the file so the test fails

Thank you for reporting, @abenettt!

Will take a look!

@abenettt

Released as ergebnis/classy:1.1.1!