Fixes sprintf unmapped parameter.

This commit is contained in:
Denis Brumann 2019-04-08 21:51:36 +02:00
parent 87c4cc1301
commit b9e2046821
No known key found for this signature in database
GPG Key ID: 69F30FACCE825A1A

View File

@ -294,7 +294,7 @@ trait HttpClientTrait
$flags = $flags ?? (JSON_HEX_TAG | JSON_HEX_APOS | JSON_HEX_AMP | JSON_HEX_QUOT | JSON_PRESERVE_ZERO_FRACTION);
if (!\is_array($value) && !$value instanceof \JsonSerializable) {
throw new InvalidArgumentException(sprintf('Option "json" must be array or JsonSerializable, %s given.', __CLASS__, \is_object($value) ? \get_class($value) : \gettype($value)));
throw new InvalidArgumentException(sprintf('Option "json" must be array or JsonSerializable, %s given.', \is_object($value) ? \get_class($value) : \gettype($value)));
}
try {