Classes in single level namespace not resovled correctly for PHP 8
abenerd opened this issue · comments
Steps required to reproduce the problem
- Run PHP 8
- Have class with single level namespace such as
App
- Try to resolve using
Constructs::fromDirectory($directory)
- 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
!