mirror of
https://github.com/pestphp/pest.git
synced 2026-04-20 22:20:17 +02:00
fix: namespaces on toBeCasedCorrectly
This commit is contained in:
@ -688,7 +688,7 @@ final class Expectation
|
||||
return false;
|
||||
}
|
||||
|
||||
foreach (Composer::userNamespacesWithDirectories() as $directory => $namespace) {
|
||||
foreach (Composer::allNamespacesWithDirectories() as $directory => $namespace) {
|
||||
if (str_starts_with($realPath, $directory)) {
|
||||
$relativePath = substr($realPath, strlen($directory) + 1);
|
||||
$relativePath = explode('.', $relativePath)[0];
|
||||
|
||||
Reference in New Issue
Block a user