`getClassesInNamespace()` returns `Traits`
Hi,
maybe it is a normal behavior but should ClassFinder::getClassesInNamespace() returns PHP trait?
When using class_exists() on elements returned by this function, PHP says it is false.
But trait_exists() is working (when not class)..
To replicate
- Have two name space 'App\Entity' and 'App\Entity\Traits'.
- Have
App\Entity\Userclass. - Have
App\Entity\Traits\Addresstrait. - List all classes in name space with Recursive mode:
ClassFinder::getClassesInNamespace('App\Entity', ClassFinder::RECURSIVE_MODE);. - Final list looks like this:
App\Entity\UserApp\Entity\Traits\Address
Expected behavior
Only have App\Entity\User when searching for CLASSES in Namespace.
Edited by CAVASIN