diff --git a/src/Pharaoh/Pharaoh.php b/src/Pharaoh/Pharaoh.php index aff3d54b4..5e6a77216 100644 --- a/src/Pharaoh/Pharaoh.php +++ b/src/Pharaoh/Pharaoh.php @@ -69,7 +69,7 @@ final class Pharaoh private ?PharInfo $pharInfo = null; private ?string $path = null; - public function __construct(string $file, ?string $alias = null) + public function __construct(string $file) { Assert::readable($file); Assert::false( @@ -83,7 +83,7 @@ public function __construct(string $file, ?string $alias = null) } // We have to give every one a different alias, or it pukes. - $alias ??= (Hex::encode(random_bytes(16)).'.phar'); + $alias = (Hex::encode(random_bytes(16)).'.phar'); $tmpFile = sys_get_temp_dir().DIRECTORY_SEPARATOR.$alias; copy($file, $tmpFile);