Closed (fixed)
Project:
Rate
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
25 Jan 2020 at 15:11 UTC
Updated:
3 Jul 2023 at 12:42 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
peterkokot commentedComment #3
nathandentzauI recommend to enable strict comparison for in_array().
You can update your condition like this:
if (in_array(substr($data, 0, 1), ['Y', 'N'], TRUE)) {I recommend using strict comparison here as well:
===Comment #4
hotwebmatter commentedRe-rolled the patch from #2 with the fixes recommended in #3.
Comment #5
nathandentzauLooks good!
Comment #6
nathandentzauComment #8
krzysztof domańskiThanks all! Committed.
Comment #9
krzysztof domańskiTest failures are unrelated. There is a problem in HEAD. It is related to SQLite and PostgreSQL.
Comment #11
ericdsd commented- Edited - wrong issue