@@ -53,7 +53,7 @@ public function testGt(): void
5353 // gt "Bravo": names > "Bravo" alphabetically → Charlie, Delta
5454 $ response = self ::createClient ()->request ('GET ' , '/chickens?nameComparison[gt]=Bravo ' );
5555 $ this ->assertResponseIsSuccessful ();
56- $ names = array_map (static fn ($ c ) => $ c ['name ' ], $ response ->toArray ()['member ' ]);
56+ $ names = array_map (static fn (array $ c ) => $ c ['name ' ], $ response ->toArray ()['member ' ]);
5757 sort ($ names );
5858 $ this ->assertSame (['Charlie ' , 'Delta ' ], $ names );
5959 }
@@ -63,7 +63,7 @@ public function testGte(): void
6363 // gte "Bravo": names >= "Bravo" → Bravo, Charlie, Delta
6464 $ response = self ::createClient ()->request ('GET ' , '/chickens?nameComparison[gte]=Bravo ' );
6565 $ this ->assertResponseIsSuccessful ();
66- $ names = array_map (static fn ($ c ) => $ c ['name ' ], $ response ->toArray ()['member ' ]);
66+ $ names = array_map (static fn (array $ c ) => $ c ['name ' ], $ response ->toArray ()['member ' ]);
6767 sort ($ names );
6868 $ this ->assertSame (['Bravo ' , 'Charlie ' , 'Delta ' ], $ names );
6969 }
@@ -73,7 +73,7 @@ public function testLt(): void
7373 // lt "Charlie": names < "Charlie" → Alpha, Bravo
7474 $ response = self ::createClient ()->request ('GET ' , '/chickens?nameComparison[lt]=Charlie ' );
7575 $ this ->assertResponseIsSuccessful ();
76- $ names = array_map (static fn ($ c ) => $ c ['name ' ], $ response ->toArray ()['member ' ]);
76+ $ names = array_map (static fn (array $ c ) => $ c ['name ' ], $ response ->toArray ()['member ' ]);
7777 sort ($ names );
7878 $ this ->assertSame (['Alpha ' , 'Bravo ' ], $ names );
7979 }
@@ -83,7 +83,7 @@ public function testLte(): void
8383 // lte "Charlie": names <= "Charlie" → Alpha, Bravo, Charlie
8484 $ response = self ::createClient ()->request ('GET ' , '/chickens?nameComparison[lte]=Charlie ' );
8585 $ this ->assertResponseIsSuccessful ();
86- $ names = array_map (static fn ($ c ) => $ c ['name ' ], $ response ->toArray ()['member ' ]);
86+ $ names = array_map (static fn (array $ c ) => $ c ['name ' ], $ response ->toArray ()['member ' ]);
8787 sort ($ names );
8888 $ this ->assertSame (['Alpha ' , 'Bravo ' , 'Charlie ' ], $ names );
8989 }
@@ -93,7 +93,7 @@ public function testCombinedGtAndLt(): void
9393 // gt "Alpha" AND lt "Delta" → Bravo, Charlie
9494 $ response = self ::createClient ()->request ('GET ' , '/chickens?nameComparison[gt]=Alpha&nameComparison[lt]=Delta ' );
9595 $ this ->assertResponseIsSuccessful ();
96- $ names = array_map (static fn ($ c ) => $ c ['name ' ], $ response ->toArray ()['member ' ]);
96+ $ names = array_map (static fn (array $ c ) => $ c ['name ' ], $ response ->toArray ()['member ' ]);
9797 sort ($ names );
9898 $ this ->assertSame (['Bravo ' , 'Charlie ' ], $ names );
9999 }
@@ -103,7 +103,7 @@ public function testNe(): void
103103 // ne "Bravo": all names except "Bravo" → Alpha, Charlie, Delta
104104 $ response = self ::createClient ()->request ('GET ' , '/chickens?nameComparison[ne]=Bravo ' );
105105 $ this ->assertResponseIsSuccessful ();
106- $ names = array_map (static fn ($ c ) => $ c ['name ' ], $ response ->toArray ()['member ' ]);
106+ $ names = array_map (static fn (array $ c ) => $ c ['name ' ], $ response ->toArray ()['member ' ]);
107107 sort ($ names );
108108 $ this ->assertSame (['Alpha ' , 'Charlie ' , 'Delta ' ], $ names );
109109 }
@@ -147,7 +147,7 @@ public function testOpenApiDocumentation(): void
147147 $ this ->assertContains ($ expectedName , $ parameterNames , \sprintf ('Expected parameter "%s" in OpenAPI documentation ' , $ expectedName ));
148148 }
149149
150- $ comparisonParams = array_filter ($ parameters , static fn ($ p ) => str_starts_with ($ p ['name ' ], 'nameComparison[ ' ));
150+ $ comparisonParams = array_filter ($ parameters , static fn (array $ p ): bool => str_starts_with ($ p ['name ' ], 'nameComparison[ ' ));
151151 foreach ($ comparisonParams as $ param ) {
152152 $ this ->assertSame ('query ' , $ param ['in ' ]);
153153 }
0 commit comments