Skip to content

Commit a03e76c

Browse files
committed
Make things PHP 7.4 compliant
1 parent 503744d commit a03e76c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/shared/Url.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
*/
1111
namespace PharIo\Phive;
1212

13-
use LogicException;
1413
use const PHP_QUERY_RFC3986;
1514
use function array_key_exists;
1615
use function basename;
@@ -45,7 +44,7 @@ public static function isHttpsUrl(string $string): bool {
4544
return stripos($string, 'https://') === 0;
4645
}
4746

48-
public function __construct(string $uri, ?string $filename = null, array $requiredHeaders = []) {
47+
public function __construct(string $uri, string $filename = null, array $requiredHeaders = []) {
4948
$components = $this->parseURL($uri);
5049
$this->ensureHttps($components['scheme'] ?? '');
5150
$this->uri = $uri;

0 commit comments

Comments
 (0)