ソースを参照

gitflow-hotfix-stash: fix_website_repo_find_config_typing

Olivier Massot 2 年 前
コミット
8b37109e94
1 ファイル変更2 行追加2 行削除
  1. 2 2
      ot_core/Classes/Website/OtWebsiteRepository.php

+ 2 - 2
ot_core/Classes/Website/OtWebsiteRepository.php

@@ -481,9 +481,9 @@ class OtWebsiteRepository
      * Similar to findConfigFileAndContentFor(), but only returns the config file path
      * @param int $rootUid
      * @param string|null $identifier
-     * @return string   Path of the config file of the given website
+     * @return string | null  Path of the config file of the given website
      */
-    public function findConfigFilePathFor(int $rootUid, string $identifier = null): string
+    public function findConfigFilePathFor(int $rootUid, string $identifier = null): ?string
     {
         $pathAndConfig = $this->findConfigFileAndContentFor($rootUid, $identifier);
         return $pathAndConfig[0];