Skip to content

Commit 3e45fea

Browse files
committed
Fix implicit nullables
1 parent 4b7fbd3 commit 3e45fea

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/MetaLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class MetaLoader
5050
* @param string|null $stateFile
5151
* @param object|null $oldMetadataSrc
5252
*/
53-
public function __construct(int $expire = null, string $stateFile = null, object $oldMetadataSrc = null)
53+
public function __construct(?int $expire = null, ?string $stateFile = null, ?object $oldMetadataSrc = null)
5454
{
5555
$this->expire = $expire;
5656
$this->oldMetadataSrc = $oldMetadataSrc;

src/MetaRefresh.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ public function __construct(Configuration $config, Configuration $modconfig)
3232
}
3333

3434
/**
35-
* @param string $crontag Only refresh sets which allow this crontag
35+
* @param string|null $crontag Only refresh sets which allow this crontag
3636
*/
37-
public function runRefresh(string $crontag = null): void
37+
public function runRefresh(?string $crontag = null): void
3838
{
3939
$sets = $this->modconfig->getArray('sets');
4040
/** @var string $datadir */

0 commit comments

Comments
 (0)