We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d75dfe4 commit 493aab6Copy full SHA for 493aab6
1 file changed
src/Scanner/Scanner.php
@@ -19,6 +19,11 @@ public function __construct(Translations ...$allTranslations)
19
{
20
foreach ($allTranslations as $translations) {
21
$domain = $translations->getDomain();
22
+
23
+ if (is_null($domain)) {
24
+ $domain = '';
25
+ }
26
27
$this->translations[$domain] = $translations;
28
}
29
@@ -57,6 +62,10 @@ protected function saveTranslation(
57
62
$domain = $this->defaultDomain;
58
63
59
64
65
66
67
68
60
69
if (!isset($this->translations[$domain])) {
61
70
return null;
71
0 commit comments