[PR #11000] Copy Debug class from doctrine/common #12752

Open
opened 2026-01-22 16:15:04 +01:00 by admin · 0 comments
Owner

Original Pull Request: https://github.com/doctrine/orm/pull/11000

State: closed
Merged: Yes


This is an alternative to https://github.com/doctrine/orm/pull/10999/commits/4c8934f2539f5f700eb7a724f94af8d109057a66 (the other commit in the associated PR still stands).

This reduces our dependency to this shared library that now holds very little code we use.
The class has not been copied verbatim:

  • Unused parameters and methods have been removed.
  • The class is final and internal.
  • Coding standards have been enforced, including enabling strict_types, which lead to casting a variable to string before feeding it to explode().
  • A bug found by static analysis has been addressed, where an INI setting obtained with ini_get() was compared with true, which is never returned by that function.

A follow-up of this PR could be to leverage Symfony's VarDumper component when available.

**Original Pull Request:** https://github.com/doctrine/orm/pull/11000 **State:** closed **Merged:** Yes --- This is an alternative to https://github.com/doctrine/orm/pull/10999/commits/4c8934f2539f5f700eb7a724f94af8d109057a66 (the other commit in the associated PR still stands). This reduces our dependency to this shared library that now holds very little code we use. The class has not been copied verbatim: - Unused parameters and methods have been removed. - The class is final and internal. - Coding standards have been enforced, including enabling `strict_types`, which lead to casting a variable to string before feeding it to `explode()`. - A bug found by static analysis has been addressed, where an INI setting obtained with `ini_get()` was compared with true, which is never returned by that function. A follow-up of this PR could be to leverage Symfony's VarDumper component when available.
admin added the pull-request label 2026-01-22 16:15:04 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#12752