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) + ) ); }