Skip to content

Commit b3462e1

Browse files
authored
Merge pull request #63 from TappNetwork/larastan_fix
Larastan fix
2 parents f5d1a71 + b729f12 commit b3462e1

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

src/Forms/Components/GoogleAutocomplete.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -266,8 +266,8 @@ public function autocompleteLabel(string|Closure|null $label): static
266266
protected function getAutocompleteLabel(): string
267267
{
268268
return $this->evaluate($this->autocompleteLabel)
269-
?? __('filament-google-autocomplete-field::filament-google-autocomplete-field.autocomplete.label')
270-
?? $this->getLabel();
269+
?: (__('filament-google-autocomplete-field::filament-google-autocomplete-field.autocomplete.label')
270+
?: $this->getLabel());
271271
}
272272

273273
public function autocompleteName(string|Closure|null $name): static
@@ -292,6 +292,6 @@ public function autocompletePlaceholder(string|Closure|null $placeholder): stati
292292
protected function getAutocompletePlaceholder(): string
293293
{
294294
return $this->evaluate($this->autocompletePlaceholder)
295-
?? __('filament-google-autocomplete-field::filament-google-autocomplete-field.autocomplete.placeholder');
295+
?: __('filament-google-autocomplete-field::filament-google-autocomplete-field.autocomplete.placeholder');
296296
}
297297
}

tests/TestCase.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,13 @@
1919

2020
class TestCase extends Orchestra
2121
{
22+
/**
23+
* The latest response from the application.
24+
*
25+
* @var \Illuminate\Testing\TestResponse|null
26+
*/
27+
public static $latestResponse;
28+
2229
protected function setUp(): void
2330
{
2431
parent::setUp();

0 commit comments

Comments
 (0)