Skip to content

Commit 783a119

Browse files
authored
Merge pull request #555 from web-token/temp-efba4d
Merge up 3.4.1 to 4.0.x
2 parents 29a3191 + 8342de7 commit 783a119

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/Library/Encryption/JWEBuilder.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,6 @@ public function getContentEncryptionAlgorithmManager(): AlgorithmManager
9999
*/
100100
public function withPayload(string $payload): self
101101
{
102-
if (mb_detect_encoding($payload, 'UTF-8', true) !== 'UTF-8') {
103-
throw new InvalidArgumentException('The payload must be encoded in UTF-8');
104-
}
105102
$clone = clone $this;
106103
$clone->payload = $payload;
107104

0 commit comments

Comments
 (0)