diff --git a/src/Context/LaravelRequestContext.php b/src/Context/LaravelRequestContext.php index 953c6fb4..944a0c9f 100644 --- a/src/Context/LaravelRequestContext.php +++ b/src/Context/LaravelRequestContext.php @@ -19,7 +19,7 @@ public function getUser(): array { try { $user = $this->request->user(); - + if (! $user) { return []; } diff --git a/src/Solutions/SuggestCorrectVariableNameSolution.php b/src/Solutions/SuggestCorrectVariableNameSolution.php index 510bc229..6c26a336 100644 --- a/src/Solutions/SuggestCorrectVariableNameSolution.php +++ b/src/Solutions/SuggestCorrectVariableNameSolution.php @@ -2,9 +2,7 @@ namespace Facade\Ignition\Solutions; -use Facade\IgnitionContracts\RunnableSolution; use Facade\IgnitionContracts\Solution; -use Illuminate\Support\Facades\Blade; class SuggestCorrectVariableNameSolution implements Solution { diff --git a/tests/Solutions/UndefinedVariableSolutionProviderTest.php b/tests/Solutions/UndefinedVariableSolutionProviderTest.php index 01757cdc..f37c030e 100644 --- a/tests/Solutions/UndefinedVariableSolutionProviderTest.php +++ b/tests/Solutions/UndefinedVariableSolutionProviderTest.php @@ -54,7 +54,6 @@ public function it_can_recommend_fixing_a_variable_name_typo() $this->assertTrue(Str::contains($solutions[0]->getSolutionDescription(), 'Did you mean `$footerDescription`?')); } - protected function getUndefinedVariableException(): ViewException { return new ViewException('Undefined variable: notSet (View: ./views/welcome.blade.php)');