Skip to content

Commit 4249c6d

Browse files
committed
[HttpKernel] Added the resource ID when printing a resource in the DataCollector
1 parent 0de527f commit 4249c6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DataCollector/DataCollector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ protected function varToString($var)
5555
}
5656

5757
if (is_resource($var)) {
58-
return sprintf('Resource(%s)', get_resource_type($var));
58+
return sprintf('Resource(%s#%d)', get_resource_type($var), $var);
5959
}
6060

6161
if (null === $var) {

0 commit comments

Comments
 (0)