Shalvah 2 месяцев назад
Родитель
Сommit
dc00491c07
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      src/Writing/CustomTranslationsLoader.php

+ 2 - 0
src/Writing/CustomTranslationsLoader.php

@@ -32,6 +32,8 @@ class CustomTranslationsLoader extends FileLoader
                 $lines = $this->scribeTranslationsCache[$group] ?? [];
             } elseif ($this->files->exists($full = "{$this->hints[$namespace]}/scribe.php")) {
                 $this->scribeTranslationsCache = $this->files->getRequire($full);
+                // getRequire() requires the Scribe file, which will return an array
+                // @phpstan-ignore-next-line nullCoalesce.offset
                 $lines = $this->scribeTranslationsCache[$group] ?? [];
             } else {
                 return [];