Skip to content

Conversation

@cmb69
Copy link
Member

@cmb69 cmb69 commented Apr 1, 2020

We have to call ::__debugInfo(), if defined for SPL descendants.


I have some doubts regarding the BC break, particularly since it would be no longer possible to call the inherited ::__debugInfo(), because it is actually not inherited; only the get_debug_info handlers are implemented.

Thoughts?

We have to call `::__debugInfo()`, if defined for SPL descendants.
@nikic
Copy link
Member

nikic commented Apr 1, 2020

I would recommend actually implementing __debugInfo() instead, and dropping get_debug_info().

@cmb69
Copy link
Member Author

cmb69 commented Apr 3, 2020

I would recommend actually implementing __debugInfo() instead, and dropping get_debug_info().

I agree that this is cleaner, but would be a BC break regarding the var_dump() output (see PR #5342).

@cmb69
Copy link
Member Author

cmb69 commented Apr 3, 2020

Closing in favor of PR #5342, which doesn't have the misbelieved BC issue.

@cmb69 cmb69 closed this Apr 3, 2020
@cmb69 cmb69 deleted the cmb/69264 branch April 3, 2020 09:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants