From 4982a5008e475c3a993a6bee2e2247e4e4ff762b Mon Sep 17 00:00:00 2001 From: rforced Date: Mon, 2 Dec 2024 03:43:09 -0500 Subject: [PATCH] explicit nulls (#211) --- src/Recorders/DumpRecorder/HtmlDumper.php | 2 +- tests/TestClasses/FakeTime.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Recorders/DumpRecorder/HtmlDumper.php b/src/Recorders/DumpRecorder/HtmlDumper.php index ebf18396..4f7667e6 100644 --- a/src/Recorders/DumpRecorder/HtmlDumper.php +++ b/src/Recorders/DumpRecorder/HtmlDumper.php @@ -8,7 +8,7 @@ class HtmlDumper extends BaseHtmlDumper { - public function __construct($output = null, string $charset = null, int $flags = 0) + public function __construct($output = null, ?string $charset = null, int $flags = 0) { parent::__construct($output, $charset, $flags); diff --git a/tests/TestClasses/FakeTime.php b/tests/TestClasses/FakeTime.php index 0569a5fb..30eba3c7 100644 --- a/tests/TestClasses/FakeTime.php +++ b/tests/TestClasses/FakeTime.php @@ -9,7 +9,7 @@ class FakeTime implements Time { protected DateTimeImmutable $dateTime; - public function __construct(string $dateTime = null, $format = 'Y-m-d H:i:s') + public function __construct(?string $dateTime = null, $format = 'Y-m-d H:i:s') { if (! is_null($dateTime)) { $this->setCurrentTime($dateTime, $format);