Skip to content

Commit

Permalink
explicit nulls (#211)
Browse files Browse the repository at this point in the history
  • Loading branch information
rforced authored Dec 2, 2024
1 parent d409737 commit 4982a50
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Recorders/DumpRecorder/HtmlDumper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion tests/TestClasses/FakeTime.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4982a50

Please sign in to comment.