Skip to content
This repository has been archived by the owner on Feb 1, 2020. It is now read-only.

Options limited for variant value type #10

Open
kherge opened this issue Feb 21, 2018 · 0 comments
Open

Options limited for variant value type #10

kherge opened this issue Feb 21, 2018 · 0 comments
Assignees
Labels

Comments

@kherge
Copy link
Member

kherge commented Feb 21, 2018

Problem

Enum variant values are limited by what PHP supports as array keys. This leads to values unexpectedly being cast to an incorrect value or PHP raising an error.

Resolution

Use an alternative mechanism for using mapping variant values to names.

References

  1. http://php.net/manual/en/language.types.array.php#example-56
@kherge kherge added the Bug label Feb 21, 2018
@kherge kherge self-assigned this Feb 22, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant