You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The documentation states that the function will return the escaped string or false on failure. I don't think escaping an empty string should result in failure, but even if this was intended, the result should be false, not null.
Additionally, I would be like to know under what circumstances escaping even can fail. Maybe the documentation could give an example?
The text was updated successfully, but these errors were encountered:
bix0r
added a commit
to bix0r/pecl-search_engine-solr
that referenced
this issue
Mar 31, 2025
Fixesphp#83
There is no reason for returning null given an empty string.
Plus, the methods don't actually "say" they return null, ever.
Also, escapeQueryChars() actually never returns false.
That will be fixed in documentation.
The following code:
Resulted in this output:
But I expected this output instead:
The documentation states that the function will return the escaped string or false on failure. I don't think escaping an empty string should result in failure, but even if this was intended, the result should be false, not null.
Additionally, I would be like to know under what circumstances escaping even can fail. Maybe the documentation could give an example?
The text was updated successfully, but these errors were encountered: