From b6385dc865bbd13f32302bce9f62d58b5eafcb18 Mon Sep 17 00:00:00 2001 From: nuno maduro Date: Fri, 10 Apr 2026 19:21:31 +0100 Subject: [PATCH] fix: namespaces on `toBeCasedCorrectly` --- src/Expectation.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Expectation.php b/src/Expectation.php index 60c047bb..69bf52f3 100644 --- a/src/Expectation.php +++ b/src/Expectation.php @@ -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];