10000 bug #12079 [HttpKernel] Initialize DataCollector data as array (1ed) · symfony/symfony@d7e630a · GitHub
[go: up one dir, main page]

Skip to content

Commit d7e630a

Browse files
committed
bug #12079 [HttpKernel] Initialize DataCollector data as array (1ed)
This PR was merged into the 2.6-dev branch. Discussion ---------- [HttpKernel] Initialize DataCollector data as array | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - Without this I'm getting an exception when I open the debug panel without collected data. ``` ContextErrorException: Warning: Invalid argument supplied for foreach() - in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/DataCollector/DumpDataCollector.php at line 165 Commits ------- 986df54 [HttpKernel] Initialize DataCollector data as array
2 parents a8888be + 986df54 commit d7e630a

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
@@ -23,7 +23,7 @@
2323
*/
2424
abstract class DataCollector implements DataCollectorInterface, \Serializable
2525
{
26-
protected $data;
26+
protected $data = array();
2727

2828
/**
2929
* @var ValueExporter

0 commit comments

Comments
 (0)
0