Found 1 unknown class!
(unable to autoload those, so we cannot check them)
• locale
use App\Shared\Internationalization\Locale\Locale;
class A
{
public function translate(Translatable | TranslationKey $translatable, ?Locale $locale = null) : string
{
if ($translatable instanceof TranslationKey) {
return $this->trans($translatable->getId(), domain: $translatable->getDomain(), locale: $locale?->toString()); // error produced here
}
return $translatable->trans($this, $locale);
}
}
// ..clip...
return (new IdentityTranslator())->trans(
$this->id,
$parameters,
locale: (string) $locale, // error produced here
);
Found 1 unknown class! (unable to autoload those, so we cannot check them)
• locale