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