@@ -87,7 +87,7 @@ public function caseSearch(string $searchTerms, int $count = 10): array
8787 return $ this ->createSearchResult ($ response );
8888 }
8989
90- public function caseById (string $ id ): CaseFile
90+ public function caseById (int $ id ): CaseFile
9191 {
9292 $ url = $ this ->getRequestUrl ('http://cbrain.com/casefile/rel/case-by-id ' , [
9393 'id ' => $ id ,
@@ -114,7 +114,7 @@ public function matterSearch(string $searchTerms, int $count = 10): array
114114 return $ this ->createSearchResult ($ response );
115115 }
116116
117- public function matterById (string $ id ): Matter
117+ public function matterById (int $ id ): Matter
118118 {
119119 $ url = $ this ->getRequestUrl ('http://cbrain.com/casefile/rel/matter-by-id ' , [
120120 'id ' => $ id ,
@@ -142,7 +142,7 @@ public function matterByMatterNumber(string $matterNumber): Matter
142142 return $ this ->createItemResult ($ response , Matter::class);
143143 }
144144
145- public function documentById (string $ id ): Document
145+ public function documentById (int $ id ): Document
146146 {
147147 $ url = $ this ->getRequestUrl ('http://cbrain.com/casefile/rel/document-by-id ' , [
148148 'id ' => $ id ,
@@ -229,7 +229,7 @@ protected function configureOptions(OptionsResolver $resolver): void
229229 ->setAllowedTypes ('cache_item_pool ' , CacheItemPoolInterface::class);
230230 }
231231
232- protected function getRequestUrl (string $ rel , array $ values ): string
232+ protected function getRequestUrl (string $ rel , array $ values = [] ): string
233233 {
234234 $ index = $ this ->getServiceIndex ();
235235
0 commit comments