-
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug #64 Fix Enum constraint deserialization (ogizanagi)
This PR was merged into the 1.x-dev branch. Discussion ---------- Fix Enum constraint deserialization When the constraint is serialized (to be cached) and the `choice` option is provided (and expecting enum instances and not just values), deserialization of the choice option will not use `EnumInterface::get()` and thus won't create the proper multiton instances, making strict comparisons fail. This fixes it by replacing deserialized instances by proper ones. Commits ------- 95619c2 Fix Enum constraint deserialization
- Loading branch information
Showing
2 changed files
with
33 additions
and
0 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