From fff5f9f6d65bff90a5b0ae3caa584775cee8cdd0 Mon Sep 17 00:00:00 2001 From: Fabio Spadea Date: Mon, 9 Dec 2024 18:07:16 +0100 Subject: [PATCH] Replace implicitly nullable parameters for PHP 8.4 --- src/Solutions/Laravel/MakeViewVariableOptionalSolution.php | 2 +- src/Solutions/SuggestCorrectVariableNameSolution.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Solutions/Laravel/MakeViewVariableOptionalSolution.php b/src/Solutions/Laravel/MakeViewVariableOptionalSolution.php index 9db209a..75f6490 100644 --- a/src/Solutions/Laravel/MakeViewVariableOptionalSolution.php +++ b/src/Solutions/Laravel/MakeViewVariableOptionalSolution.php @@ -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; diff --git a/src/Solutions/SuggestCorrectVariableNameSolution.php b/src/Solutions/SuggestCorrectVariableNameSolution.php index fb122fb..46be638 100644 --- a/src/Solutions/SuggestCorrectVariableNameSolution.php +++ b/src/Solutions/SuggestCorrectVariableNameSolution.php @@ -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;