-
Type: Improvement
-
Resolution: Unresolved
-
Priority: Unknown
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
This problem predates the introduction of document_to_array() in PHPLIB-1122, since is_first_key_operator() and is_pipeline() always converted their arguments to arrays.
This issue is typical in the code path for validating update and replacement arguments, since both methods are called in succession. Ideally, we should process the array|object value once with document_to_array() and then inspect its return value.
- is related to
-
PHPLIB-1122 Support Document and PackedArray objects in public APIs
- Closed