Issue Bug Resolved

#110486Debugger does not mark the first blacklisted class as filtered

Wouter Wolters 08/14/26, 18:37 updated 09/03/26, 13:15

Description

When a class is the first entry in `DebuggerUtility`‘s class blacklist, its
contents are filtered correctly, but the rendered object header is not marked
as `filtered`.

The header currently searches for the class name in an imploded blacklist and
checks whether its position is greater than zero. A class at the first position
therefore fails this check.

Steps to reproduce:

1. Dump an object using `DebuggerUtility::var_dump()`.
2. Pass its class as the first or only entry in `$blacklistedClassNames`.
3. Observe that the object’s contents are hidden, but its header lacks the
`filtered` marker.

Expected result:

The header is marked as `filtered` for every blacklisted class, independent of
its position in the blacklist.

Actual result:

The first blacklisted class is not marked as `filtered`.

Reviews 2

History 24

  1. Wouter Wolters changed description 08/14/26, 18:38

  2. Gerrit Code Review pushed patch set 1 for main to change 95334 status New Under Review 08/14/26, 18:39

  3. Gerrit Code Review pushed patch set 1 for 14.3 to change 95605 09/03/26, 13:10

  4. Wouter Wolters commented and changed status Under Review Resolved done 0 % 100 % 09/03/26, 13:15

    Applied in changeset commit:8ac037f2b847a5df0c283cd3e709208a3dfd060a.