Преглед изворни кода

articlesInAnthology 添加传参类型

visuddhinanda пре 3 месеци
родитељ
комит
691e12a2b2
1 измењених фајлова са 1 додато и 1 уклоњено
  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')