From e5730fb073c0c0cf27781060c63b769202b09d6f Mon Sep 17 00:00:00 2001 From: Dimitrios Karvounaris <66212726+dimitrioskarvounaris@users.noreply.github.com> Date: Sun, 31 May 2020 20:43:32 +0200 Subject: [PATCH] #53 Recognize absolute paths under Windows --- src/PendingObjects/UsesCall.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PendingObjects/UsesCall.php b/src/PendingObjects/UsesCall.php index d7cfc1f62..b32292575 100644 --- a/src/PendingObjects/UsesCall.php +++ b/src/PendingObjects/UsesCall.php @@ -59,7 +59,7 @@ public function __construct(string $filename, array $classAndTraits) public function in(string ...$targets): void { $targets = array_map(function ($path): string { - return $path[0] === DIRECTORY_SEPARATOR + return $path[0] === DIRECTORY_SEPARATOR || preg_match('~\A[A-Z]:(?![^/\\\\])~i',$path) > 0 ? $path : implode(DIRECTORY_SEPARATOR, [ dirname($this->filename),