Use real return types in Repositories.php
[phorkie.git] / src / phorkie / Repositories.php
index c6059961a3f6ed2b2124276729698ab4ef46fd37..4a91e96903bf5694bb2720192b94072146c89b84 100644 (file)
@@ -9,10 +9,7 @@ class Repositories
         $this->gitDir  = $GLOBALS['phorkie']['cfg']['gitdir'];
     }
 
-    /**
-     * @return Repository
-     */
-    public function createNew()
+    public function createNew(): Repository
     {
         chdir($this->gitDir);
         $dirs = glob('*.git', GLOB_ONLYDIR);
@@ -47,7 +44,7 @@ class Repositories
      *
      * @return array Array of Repositories first, number of repositories second
      */
-    public function getList($page = 0, $perPage = 10)
+    public function getList($page = 0, $perPage = 10): array
     {
         chdir($this->gitDir);
         $dirs = glob('*.git', GLOB_ONLYDIR);