From ae573e77aa0d77c661130ad88ff5e8c7aa45af3f Mon Sep 17 00:00:00 2001 From: tyfai <102683359+tyfai@users.noreply.github.com> Date: Fri, 13 Jan 2023 15:48:01 +0000 Subject: [PATCH] Update Assertion.php --- lib/Assert/Assertion.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]); }