Skip to content

Commit c74bfd1

Browse files
Merge pull request #104 from tacman/php8.4
fix nullable declaration for php 8.4
2 parents 71f338f + 5ee2a2f commit c74bfd1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Packagist/Api/Client.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ class Client
3131
* @param string $packagistUrl Packagist URL
3232
*/
3333
public function __construct(
34-
ClientInterface $httpClient = null,
35-
Factory $resultFactory = null,
34+
?ClientInterface $httpClient = null,
35+
?Factory $resultFactory = null,
3636
string $packagistUrl = 'https://packagist.org'
3737
) {
3838
if (null === $httpClient) {

0 commit comments

Comments
 (0)