@@ -28,7 +28,7 @@ public function __construct(TranslatorInterface $translator, string $catalogue =
2828 /**
2929 * @param array<string> $collection
3030 */
31- public function format (array $ collection , int $ limit = null ): string
31+ public function format (array $ collection , int $ limit = null ) : string
3232 {
3333 $ count = \count ($ collection );
3434
@@ -54,7 +54,7 @@ public function format(array $collection, int $limit = null): string
5454 /**
5555 * @param array<string> $collection
5656 */
57- private function formatCommaSeparatedWithLimit (array $ collection , ?int $ limit , int $ count ): string
57+ private function formatCommaSeparatedWithLimit (array $ collection , ?int $ limit , int $ count ) : string
5858 {
5959 $ display = \array_map (fn ($ element ) => (string ) $ element , \array_slice ($ collection , 0 , $ limit ));
6060
@@ -69,7 +69,7 @@ private function formatCommaSeparatedWithLimit(array $collection, ?int $limit, i
6969 /**
7070 * @param array<string> $collection
7171 */
72- private function formatCommaSeparated (array $ collection , int $ count ): string
72+ private function formatCommaSeparated (array $ collection , int $ count ) : string
7373 {
7474 $ display = \array_map (fn ($ element ) => (string ) $ element , \array_slice ($ collection , 0 , $ count - 1 ));
7575
@@ -82,7 +82,7 @@ private function formatCommaSeparated(array $collection, int $count): string
8282 /**
8383 * @param array<string> $collection
8484 */
85- private function formatOnlyTwo (array $ collection ): string
85+ private function formatOnlyTwo (array $ collection ) : string
8686 {
8787 return $ this ->translator ->trans ('only_two ' , [
8888 '%first% ' => (string ) $ collection [0 ],
0 commit comments