[HttpKernel] Added the resource ID when printing a resource in the DataCollector

This commit is contained in:
Bernhard Schussek 2014-04-10 19:43:37 +02:00
parent 230b2dc2b7
commit 01983a553a

View File

@ -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) {