Skip to content

Commit 167380d

Browse files
committed
fix(Checksum): remove JSON_PARTIAL_OUTPUT_ON_ERROR to enforce data integrity
1 parent c35f236 commit 167380d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ValueObjects/Checksum.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ public static function createFromAttributes(array $attributes): self
1818
return new self(
1919
hash(
2020
self::HASHING_ALGORITHM,
21-
json_encode(
21+
(string) json_encode(
2222
$attributes,
23-
JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE | JSON_THROW_ON_ERROR
23+
JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE
2424
)
2525
)
2626
);

0 commit comments

Comments
 (0)