It seems like $this->translator->get($...plication->getLocale()) can also be of type array and null; however, parameter $translation of W2w\Laravel\Apie\Plugins...nslation::__construct() does only seem to accept string, maybe add an additional type check?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
37
return new Translation($id, /** @scrutinizer ignore-type */ $this->translator->get($id, [], $this->application->getLocale()), new Locale($this->application->getLocale()));
Loading history...
38
}
39
40
public function retrieveAll(string $resourceClass, array $context, SearchFilterRequest $searchFilterRequest