mirror of
https://github.com/pestphp/pest.git
synced 2026-04-21 06:27:28 +02:00
chore: updates snapshots
This commit is contained in:
@ -684,6 +684,10 @@ final class Expectation
|
||||
|
||||
$realPath = realpath($object->path);
|
||||
|
||||
if ($realPath === false) {
|
||||
return false;
|
||||
}
|
||||
|
||||
foreach (Composer::userNamespacesWithDirectories() as $directory => $namespace) {
|
||||
if (str_starts_with($realPath, $directory)) {
|
||||
$relativePath = substr($realPath, strlen($directory) + 1);
|
||||
|
||||
Reference in New Issue
Block a user