Ver Fonte

Merge branch 'hotfix/fix_website_repo_find_config_typing' into develop

Olivier Massot há 2 anos atrás
pai
commit
46034f89ea
1 ficheiros alterados com 2 adições e 2 exclusões
  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];