Skip to content

Commit c5de051

Browse files
author
Kyra Farrow
committed
bug #31028 Fixes unmapped parameter for an error message in HttpClientTrait (dbrumann)
This PR was merged into the 4.3-dev branch. Discussion ---------- Fixes unmapped parameter for an error message in HttpClientTrait | Q | A | ------------- | --- | Branch? | master | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | --- | License | MIT | Doc PR | --- Commits ------- b9e2046821 Fixes sprintf unmapped parameter.
2 parents 79a0155 + 01d6730 commit c5de051

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)