Skip to content

Commit c740b16

Browse files
committed
Fix implicit nullables
1 parent defec0e commit c740b16

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/MetaLoader.php

Lines changed: 2 additions & 2 deletions
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;
@@ -522,7 +522,7 @@ public function dumpMetadataStdOut(): void
522522
* @param string $type The metadata type.
523523
* @param array|null $template The template.
524524
*/
525-
private function addMetadata(string $filename, ?array $metadata, string $type, array $template = null): void
525+
private function addMetadata(string $filename, ?array $metadata, string $type, ?array $template = null): void
526526
{
527527
if ($metadata === null) {
528528
return;

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)