Skip to content

Commit 5e3585b

Browse files
authored
Merge pull request #46 from charjr/patch-1
Handle JSON_ERROR_NON_BACKED_ENUM
2 parents 5af374c + 6085253 commit 5e3585b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎src/JsonException.php‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ class JsonException extends \InvalidArgumentException
2222
\JSON_ERROR_UNSUPPORTED_TYPE => 'A value of a type that cannot be encoded was given',
2323
\JSON_ERROR_INVALID_PROPERTY_NAME => 'A property name that cannot be encoded was given',
2424
\JSON_ERROR_UTF16 => 'Malformed UTF-16 characters, possibly incorrectly encoded',
25+
\JSON_ERROR_NON_BACKED_ENUM => 'Value contains a non-backed enum which cannot be serialized.',
2526
];
2627

2728
/**

0 commit comments

Comments
 (0)