Skip to content

Commit 57c8294

Browse files
committedOct 22, 2024
Minor fixes around parse_url() checks
1 parent 30fc45a commit 57c8294

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎Filesystem.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function copy(string $originFile, string $targetFile, bool $overwriteNewe
4444
$this->mkdir(\dirname($targetFile));
4545

4646
$doCopy = true;
47-
if (!$overwriteNewerFiles && null === parse_url($originFile, \PHP_URL_HOST) && is_file($targetFile)) {
47+
if (!$overwriteNewerFiles && !parse_url($originFile, \PHP_URL_HOST) && is_file($targetFile)) {
4848
$doCopy = filemtime($originFile) > filemtime($targetFile);
4949
}
5050

0 commit comments

Comments
 (0)
Failed to load comments.