Skip to content

Update normalizeValue method in Colours Field - #19

Closed
avr wants to merge 1 commit into
verbb:masterfrom
avr:patch-1
Closed

Update normalizeValue method in Colours Field#19
avr wants to merge 1 commit into
verbb:masterfrom
avr:patch-1

Conversation

@avr

@avr avr commented Apr 25, 2018

Copy link
Copy Markdown

Validation of options field expect data to be an instance of either a MultiOptionsFieldData or SingleOptionFieldData.

Because you're setting a custom defaultValue, you never normalize the value according to the parent method and an exception is throw in PHP 7.2.

Fixes #18

@avr avr changed the title Update normalizeValue method Update normalizeValue method in Colours Field Apr 25, 2018
@avr

avr commented Apr 25, 2018

Copy link
Copy Markdown
Author

Actually - rethinking and this isn't really a full solution. :|

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant