diff --git a/src/Assert.php b/src/Assert.php index a667b13..07cc141 100644 --- a/src/Assert.php +++ b/src/Assert.php @@ -1111,7 +1111,7 @@ public static function notInArray(mixed $value, mixed $values, string $message = static::reportInvalidArgument(\sprintf( $message ?: '%2$s was not expected to contain a value. Got: %s', static::valueToString($value), - \implode(', ', \array_map(['static', 'valueToString'], $values)) + \implode(', ', \array_map(static::valueToString(...), $values)) )); }