Skip to content

Commit

Permalink
Merge pull request #22 from txddev/php84-support
Browse files Browse the repository at this point in the history
Replace implicitly nullable parameters for PHP 8.4
  • Loading branch information
freekmurze authored Dec 11, 2024
2 parents 8273467 + fff5f9f commit d239a65
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Solutions/Laravel/MakeViewVariableOptionalSolution.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class MakeViewVariableOptionalSolution implements RunnableSolution

protected ?string $viewFile;

public function __construct(string $variableName = null, string $viewFile = null)
public function __construct(?string $variableName = null, ?string $viewFile = null)
{
$this->variableName = $variableName;

Expand Down
2 changes: 1 addition & 1 deletion src/Solutions/SuggestCorrectVariableNameSolution.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class SuggestCorrectVariableNameSolution implements Solution

protected ?string $suggested;

public function __construct(string $variableName = null, string $viewFile = null, string $suggested = null)
public function __construct(?string $variableName = null, ?string $viewFile = null, ?string $suggested = null)
{
$this->variableName = $variableName;

Expand Down

0 comments on commit d239a65

Please sign in to comment.