diff --git a/src/Packagist/Api/Client.php b/src/Packagist/Api/Client.php index 79b046b..7ada102 100644 --- a/src/Packagist/Api/Client.php +++ b/src/Packagist/Api/Client.php @@ -31,8 +31,8 @@ class Client * @param string $packagistUrl Packagist URL */ public function __construct( - ClientInterface $httpClient = null, - Factory $resultFactory = null, + ?ClientInterface $httpClient = null, + ?Factory $resultFactory = null, string $packagistUrl = 'https://packagist.org' ) { if (null === $httpClient) {