-
Type: Improvement
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
With 1b29a6d for PHPLIB-599, the prototype of the Client constructor now differs from Manager in that only the Manager constructor allows null values for each parameter.
Note: Manager specifies check_null=true for Z_PARAM_ARRAY_EX when parsing the options arrays, so null values are supported internally. In the Client constructor, we'll likely need to replace explicit values with empty arrays since we tend to inject options (at least for driver options).
We should consider changing this for consistency. It's quite possible that this could break existing applications that pass null to the Client constructor when they only want to specify an options array.
I only encountered this issue with respect to the Client constructor, but it's possible there are some other edge cases from the recent type changes that I previously overlooked. I suggest we keep any eye out for those when writing the documentation in PHPLIB-601, as there may be other things we wish to change before release.
- is related to
-
PHPLIB-601 Document upcoming return type changes
- Closed