Skip to content

Commit 4982a50

Browse files
authored
explicit nulls (#211)
1 parent d409737 commit 4982a50

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Recorders/DumpRecorder/HtmlDumper.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
class HtmlDumper extends BaseHtmlDumper
1010
{
11-
public function __construct($output = null, string $charset = null, int $flags = 0)
11+
public function __construct($output = null, ?string $charset = null, int $flags = 0)
1212
{
1313
parent::__construct($output, $charset, $flags);
1414

tests/TestClasses/FakeTime.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class FakeTime implements Time
99
{
1010
protected DateTimeImmutable $dateTime;
1111

12-
public function __construct(string $dateTime = null, $format = 'Y-m-d H:i:s')
12+
public function __construct(?string $dateTime = null, $format = 'Y-m-d H:i:s')
1313
{
1414
if (! is_null($dateTime)) {
1515
$this->setCurrentTime($dateTime, $format);

0 commit comments

Comments
 (0)