Explorar el Código

articlesInAnthology 添加传参类型

visuddhinanda hace 3 meses
padre
commit
691e12a2b2
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      api-v13/app/Services/ArticleService.php

+ 1 - 1
api-v13/app/Services/ArticleService.php

@@ -44,7 +44,7 @@ class ArticleService
         return $matches[1] ?? [];
     }
 
-    public function articlesInAnthology($anthologyId)
+    public function articlesInAnthology(string $anthologyId)
     {
         $inCollection = ArticleCollection::where('collect_id', $anthologyId)
             ->select('article_id')