Skip to content

Commit 1bcbb79

Browse files
committed
style: Format
1 parent 3332d44 commit 1bcbb79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Converters/JsonConverter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function __construct(string|array $json, SchemaVersion $schemaVersion)
4141
/** @var array<int|string, mixed>|string $decoded */
4242
$decoded = json_decode($json, true, flags: JSON_THROW_ON_ERROR);
4343
} catch (JsonException $e) {
44-
throw new SchemaException('Invalid JSON Schema', previous: $e);
44+
throw new SchemaException('Invalid JSON Schema', $e->getCode(), previous: $e);
4545
}
4646

4747
if (! is_array($decoded)) {

0 commit comments

Comments
 (0)