diff --git a/lib/Assert/Assertion.php b/lib/Assert/Assertion.php index 3c2f0d7..1c8b39b 100644 --- a/lib/Assert/Assertion.php +++ b/lib/Assert/Assertion.php @@ -440,7 +440,7 @@ public static function notInArray($value, array $choices, $message = null, strin $message = \sprintf( static::generateMessage($message ?: 'Value "%s" was not expected to be an element of the values: %s'), static::stringify($value), - static::stringify($choices) + \implode(', ', \array_map([\get_called_class(), 'stringify'], $choices)) ); throw static::createException($value, $message, static::INVALID_VALUE_IN_ARRAY, $propertyPath, ['choices' => $choices]); }