Skip to content

Commit 233c106

Browse files
authored
Fix "array to string conversion" in 3.5.0 (barryvdh#1102)
This commit broke the debugbar: barryvdh@51c8ea3#diff-8a2d53e88e43b04de0cc4f64882d91feR63 since sprintf() uses multiple arguments, it doesn't accept an array of arguments.
1 parent 1180dca commit 233c106

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DataFormatter/SimpleFormatter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ private function exportValue($value, $depth = 1, $deep = false)
6161

6262
if ($deep) {
6363
$args = [$indent, implode(sprintf(", \n%s", $indent), $a), str_repeat(' ', $depth - 1)];
64-
return sprintf("[\n%s%s\n%s]", $args);
64+
return sprintf("[\n%s%s\n%s]", ...$args);
6565
}
6666

6767
$s = sprintf('[%s]', implode(', ', $a));

0 commit comments

Comments
 (0)