Skip to content
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.

Commit

Permalink
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function setFragment($fragment)
*/
public static function fromUnixPath($path)
{
$url = new self('file:');
$url = new static('file:');
if (substr($path, 0, 1) == '/') {
$url->setHost('');
}
Expand All @@ -89,7 +89,7 @@ public static function fromUnixPath($path)
*/
public static function fromWindowsPath($path)
{
$url = new self('file:');
$url = new static('file:');

// Convert directory separators
$path = str_replace(array('/', '\\'), array('%2F', '/'), $path);
Expand Down

0 comments on commit 151cf71

Please sign in to comment.