@@ -53,7 +53,7 @@ public function getMatcherFunction(string $name): callable
5353 * To clarify, the method (and other methods in the class) refers to "lists" and "objects". A
5454 * "list" is a numerically indexed array, and an "object" is an associative array.
5555 *
56- * @param array<scalar|array> $needle
56+ * @param array<scalar|array<mixed> > $needle
5757 * @param array<mixed> $haystack
5858 */
5959 public function compare (array $ needle , array $ haystack ): bool
@@ -239,8 +239,8 @@ protected function compareValues(mixed $needleValue, mixed $haystackValue): bool
239239 /**
240240 * Make sure all values in the $needle array is present in the $haystack array
241241 *
242- * @param array<array|scalar> $needle
243- * @param array $haystack
242+ * @param array<array<mixed> |scalar> $needle
243+ * @param array<mixed> $haystack
244244 */
245245 protected function inArray (array $ needle , array $ haystack ): bool
246246 {
@@ -350,6 +350,8 @@ protected function inArray(array $needle, array $haystack): bool
350350
351351 /**
352352 * See if a PHP array is a JSON array
353+ *
354+ * @param array<mixed> $array
353355 */
354356 protected function arrayIsList (array $ array ): bool
355357 {
@@ -360,6 +362,8 @@ protected function arrayIsList(array $array): bool
360362
361363 /**
362364 * See if a PHP array is a JSON object
365+ *
366+ * @param array<mixed> $array
363367 */
364368 protected function arrayIsObject (array $ array ): bool
365369 {
0 commit comments