Closed (fixed)
Project:
Search API
Version:
7.x-1.x-dev
Component:
Framework
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
3 Feb 2023 at 15:41 UTC
Updated:
4 Mar 2023 at 17:19 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
drunken monkeyThanks for pointing out this problem. However, I fear your fix is not the correct one, as it wouldn’t allow passing
NULLas the first parameter, which is the real reason that default value is there. (?SearchApiServerisn’t allowed in PHP 5.2.) Please see/test/review the attached patch with the, hopefully, correct fix.Comment #3
meyerrob commentedYou are totally right, the default value for the first parameter must default to null, therefore to make the second parameter optional as well seems to be a solution. Maybe we should be sure that the second parameter can´t be empty at all.
Comment #4
damienmckennaComment #5
damienmckennaComment #7
drunken monkeyIt seems to have worked so far. Also, as it’s passed by reference, even passing
NULLexplicitly should be OK there. (But I don’t think that will ever happen.)As you otherwise seem happy with the patch: committed.
Thanks again!