Skip to content

Commit a31a62e

Browse files
committed
[PHP 8.4] Fixes for implicit nullability deprecation
Fixes all issues that emits a deprecation notice on PHP 8.4. See: - [RFC](https://wiki.php.net/rfc/deprecate-implicitly-nullable-types) - [PHP 8.4: Implicitly nullable parameter declarations deprecated](https://php.watch/versions/8.4/implicitly-marking-parameter-type-nullable-deprecated)
1 parent 8bff8b2 commit a31a62e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/CommitFetcher.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class CommitFetcher {
99
private ?string $apiKey;
1010
private CurlFetcher $curlFetcher;
1111

12-
public function __construct(string $apiKey = null) {
12+
public function __construct(?string $apiKey = null) {
1313
$this->apiKey = $apiKey;
1414
$this->curlFetcher = new CurlFetcher();
1515
}

src/NewsFetcher.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class NewsFetcher {
2121

2222
private array $staticReplacements = [];
2323

24-
public function __construct(string $apiKey = null) {
24+
public function __construct(?string $apiKey = null) {
2525
$this->apiKey = $apiKey;
2626
$this->curlFetcher = new CurlFetcher();
2727
}

src/TagListFetcher.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class TagListFetcher {
1313
private ?string $apiKey;
1414
private CurlFetcher $curlFetcher;
1515

16-
public function __construct(string $apiKey = null) {
16+
public function __construct(?string $apiKey = null) {
1717
$this->apiKey = $apiKey;
1818
$this->curlFetcher = new CurlFetcher();
1919
}

0 commit comments

Comments
 (0)