Skip to content

Commit 6ca6d56

Browse files
authored
bless_tests: Replace the object ID in var_dump() for namespaced classes (#19174)
1 parent 2c42479 commit 6ca6d56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/dev/bless_tests.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ function normalizeOutput(string $out): string {
6565
$out = preg_replace('/in (\/|[A-Z]:\\\\)\S+ on line \d+/m', 'in %s on line %d', $out);
6666
$out = preg_replace('/in (\/|[A-Z]:\\\\)\S+:\d+/m', 'in %s:%d', $out);
6767
$out = preg_replace('/\{closure:(\/|[A-Z]:\\\\)\S+:\d+\}/', '{closure:%s:%d}', $out);
68-
$out = preg_replace('/object\(([A-Za-z0-9]*)\)#\d+/', 'object($1)#%d', $out);
68+
$out = preg_replace('/object\(([A-Za-z0-9\\\\]*)\)#\d+/', 'object($1)#%d', $out);
6969
$out = preg_replace('/^#(\d+) (\/|[A-Z]:\\\\)\S+\(\d+\):/m', '#$1 %s(%d):', $out);
7070
$out = preg_replace('/Resource id #\d+/', 'Resource id #%d', $out);
7171
$out = preg_replace('/resource\(\d+\) of type/', 'resource(%d) of type', $out);

0 commit comments

Comments
 (0)