Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Translator.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ protected function translatePlural(
protected function getTranslation(?string $domain, ?string $context, string $original): ?array
{
if ($domain === null) {
$domain = $this->domain;
$domain = (string) $this->domain;
}

if ($context === null) {
Expand All @@ -186,7 +186,7 @@ protected function getTranslation(?string $domain, ?string $context, string $ori
protected function getPluralIndex(?string $domain, int $n, bool $fallback): int
{
if ($domain === null) {
$domain = $this->domain;
$domain = (string) $this->domain;
}

//Not loaded domain or translation, use a fallback
Expand Down