From e32e7c7f8a1e8f1912b5263ea84399846150c45a Mon Sep 17 00:00:00 2001 From: Filippo Tessarotto Date: Fri, 3 Apr 2020 10:35:07 +0200 Subject: [PATCH] Assert::count(): also sprintf $message var (#179) --- src/Assert.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Assert.php b/src/Assert.php index 337349ba..e243cb42 100644 --- a/src/Assert.php +++ b/src/Assert.php @@ -1836,7 +1836,11 @@ public static function count($array, $number, $message = '') static::eq( \count($array), $number, - $message ?: \sprintf('Expected an array to contain %d elements. Got: %d.', $number, \count($array)) + \sprintf( + $message ?: 'Expected an array to contain %d elements. Got: %d.', + $number, + \count($array) + ) ); }