Skip to content

Commit 1f821de

Browse files
author
Denis Brumann
committed
Fixes sprintf unmapped parameter.
1 parent d2b55f9 commit 1f821de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

HttpClientTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ private static function jsonEncode($value, int $flags = null, int $maxDepth = 51
294294
$flags = $flags ?? (JSON_HEX_TAG | JSON_HEX_APOS | JSON_HEX_AMP | JSON_HEX_QUOT | JSON_PRESERVE_ZERO_FRACTION);
295295

296296
if (!\is_array($value) && !$value instanceof \JsonSerializable) {
297-
throw new InvalidArgumentException(sprintf('Option "json" must be array or JsonSerializable, %s given.', __CLASS__, \is_object($value) ? \get_class($value) : \gettype($value)));
297+
throw new InvalidArgumentException(sprintf('Option "json" must be array or JsonSerializable, %s given.', \is_object($value) ? \get_class($value) : \gettype($value)));
298298
}
299299

300300
try {

0 commit comments

Comments
 (0)