Skip to content

Commit 1a86975

Browse files
Merge branch '4.4' into 5.1
* 4.4: [Filesystem] fix for PHP 8 [Cache] fix DBAL v3 compat Bump Symfony version to 4.4.15 Update VERSION for 4.4.14 Update CHANGELOG for 4.4.14 Bump Symfony version to 3.4.46 Update VERSION for 3.4.45 Update CONTRIBUTORS for 3.4.45 Update CHANGELOG for 3.4.45
2 parents f319430 + ebc5149 commit 1a86975

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Filesystem.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -569,13 +569,13 @@ public function mirror(string $originDir, string $targetDir, \Traversable $itera
569569
*/
570570
public function isAbsolutePath(string $file)
571571
{
572-
return strspn($file, '/\\', 0, 1)
572+
return '' !== $file && (strspn($file, '/\\', 0, 1)
573573
|| (\strlen($file) > 3 && ctype_alpha($file[0])
574574
&& ':' === $file[1]
575575
&& strspn($file, '/\\', 2, 1)
576576
)
577577
|| null !== parse_url($file, \PHP_URL_SCHEME)
578-
;
578+
);
579579
}
580580

581581
/**

0 commit comments

Comments
 (0)