Skip to content

Commit 7863053

Browse files
committed
minor symfony#10688 [HttpKernel] Added the resource ID when printing a resource in the DataCollector (webmozart)
This PR was merged into the 2.3 branch. Discussion ---------- [HttpKernel] Added the resource ID when printing a resource in the DataCollector | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - Commits ------- 01983a5 [HttpKernel] Added the resource ID when printing a resource in the DataCollector
2 parents 230b2dc + 01983a5 commit 7863053

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/HttpKernel/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)