Skip to content

Commit

Permalink
Replace implicitly nullable parameters for PHP 8.4
Browse files Browse the repository at this point in the history
  • Loading branch information
txdFabio committed Dec 9, 2024
1 parent 8273467 commit fff5f9f
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 fff5f9f

Please sign in to comment.