Skip to content

Commit 32eeb61

Browse files
authored
Enforce JSON validity (#996)
1 parent 08d2102 commit 32eeb61

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66

77
- AWS api-change: Improve documentation
88

9+
### Fixed
10+
11+
- Assert the provided Input can be json-encoded.
12+
913
## 1.2.0
1014

1115
### Added

src/Input/PutLifecycleEventHookExecutionStatusInput.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public function request(): Request
9191

9292
// Prepare Body
9393
$bodyPayload = $this->requestBody();
94-
$body = empty($bodyPayload) ? '{}' : json_encode($bodyPayload);
94+
$body = empty($bodyPayload) ? '{}' : \json_encode($bodyPayload, 4194304);
9595

9696
// Return the Request
9797
return new Request('POST', $uriString, $query, $headers, StreamFactory::create($body));

0 commit comments

Comments
 (0)