itsgoingd / clockwork

Clockwork - php dev tools in your browser - server-side component
https://underground.works/clockwork
MIT License
5.69k stars 321 forks source link

Enhance Handling of __PHP_Incomplete_Class Instances in normalize Method #696

Closed hamedghaderi closed 8 months ago

hamedghaderi commented 8 months ago

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 #695

Changes

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.

itsgoingd commented 8 months ago

Thanks!