This PR introduces an improvement to the normalize method's handling of __PHP_Incomplete_Class instances. By checking for this class name early in the object handling logic, we prevent further processing on incomplete objects introduced here #695
Changes
Added an early return condition in the normalize method for objects of type __PHP_Incomplete_Class, returning a simplified array with the class name.
Rationale
Encountering incomplete class instances during normalization can lead to errors or undefined behavior since such objects lack a fully defined class definition.
Impact
This update improves the robustness of the normalization process with minimal impact on the existing functionality.
Summary
This PR introduces an improvement to the
normalize
method's handling of__PHP_Incomplete_Class
instances. By checking for this class name early in the object handling logic, we prevent further processing on incomplete objects introduced here #695Changes
normalize
method for objects of type__PHP_Incomplete_Class
, returning a simplified array with the class name.Rationale
Encountering incomplete class instances during normalization can lead to errors or undefined behavior since such objects lack a fully defined class definition.
Impact
This update improves the robustness of the normalization process with minimal impact on the existing functionality.