Shalvah 2 місяців тому
батько
коміт
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 [];