minor #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
This commit is contained in:
commit
78630533b8
@ -55,7 +55,7 @@ abstract class DataCollector implements DataCollectorInterface, \Serializable
|
||||
}
|
||||
|
||||
if (is_resource($var)) {
|
||||
return sprintf('Resource(%s)', get_resource_type($var));
|
||||
return sprintf('Resource(%s#%d)', get_resource_type($var), $var);
|
||||
}
|
||||
|
||||
if (null === $var) {
|
||||
|
Reference in New Issue
Block a user