This commit is contained in:
Fabio Ivona
2022-08-02 11:01:17 +02:00
parent afedf83f5d
commit 1706e1d2e0
15 changed files with 30 additions and 7 deletions

View File

@ -58,7 +58,7 @@ final class UsesCall
*/
public function in(string ...$targets): void
{
$targets = array_map(function ($path): string {
$targets = array_map(function ($path): string {
$startChar = DIRECTORY_SEPARATOR;
if ('\\' === DIRECTORY_SEPARATOR || preg_match('~\A[A-Z]:(?![^/\\\\])~i', $path) > 0) {