- Issue created by @tvalimaa
- 🇫🇮Finland tvalimaa
My problem seemed to be on custom code which calls createFilterQuery function.
Problem was that custom code had bug which allow send empty $value to createFilterQuery. When $value was empty and createFilterQuery will set $value be array then escapePhrase will gives error because code can allow $value be empty array and escapePhras expect $value be string then gives error.
- First commit to issue fork.
- Status changed to Needs review
7 months ago 11:34am 14 December 2023 - last update
7 months ago 31 pass - 🇩🇪Germany mkalkbrenner 🇩🇪
I don't think that the provided patch is right as it would hide other bugs.
An empty value has to be treated differently. - 🇩🇪Germany mkalkbrenner 🇩🇪
As also explained in #3 and #6, this isn't a bug in the module. The error occurs if some custom code provides an invalid argument.
So it is better to throw an exception instead of silently converting into something else. -
mkalkbrenner →
committed a8cfa332 on 4.x authored by
tvalimaa →
Issue #3406250 by tvalimaa: escapePhrase(): Argument #1 ($input) must be...
-
mkalkbrenner →
committed a8cfa332 on 4.x authored by
tvalimaa →
- Status changed to Fixed
5 months ago 1:05pm 8 February 2024 Automatically closed - issue fixed for 2 weeks with no activity.