bug #2163 default implementation of getDebugInfo() for BC (xabbuh)

This PR was merged into the 1.x branch.

Discussion
----------

default implementation of getDebugInfo() for BC

eZ updated the code on their side in the meantime (see ezsystems/LegacyBridge#63), but there may be other projects doing similar things (fixes https://github.com/twigphp/Twig/pull/2129#discussion_r80250969).

Commits
-------

7b4cfdb default implementation of getDebugInfo() for BC
This commit is contained in:
Fabien Potencier
2016-10-05 10:42:11 -07:00
+4 -1
View File
@@ -49,7 +49,10 @@ abstract class Twig_Template implements Twig_TemplateInterface
*
* @internal
*/
abstract public function getDebugInfo();
public function getDebugInfo()
{
return array();
}
/**
* Returns the template source code.