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 [];