-
Notifications
You must be signed in to change notification settings - Fork 184
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reject NULL values in arrays unless explicitly allowed
BC break! The `$bStrictNullTypes` configuration option did not cover NULL values in arrays, which is unexpected. This patch adds a new config option `$bStrictNullTypesInArrays` in JsonMapper, which defaults to `true` and rejects NULL values in arrays unless explicitly allowed by a nullable type declaration: `array[?int]`. This is a backwards compatibility break. The old behavior can be restored by setting the new configuration option to `false`. Resolves: #233 Related: #211
- Loading branch information
Showing
4 changed files
with
102 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters