made the getSource() method non-abstract for BC

This commit is contained in:
Fabien Potencier
2016-09-20 14:35:26 -07:00
parent 2486ea6699
commit f2a9ef3579
+4 -1
View File
@@ -56,7 +56,10 @@ abstract class Twig_Template implements Twig_TemplateInterface
*
* @return string The template source code
*/
abstract public function getSource();
public function getSource()
{
return '';
}
/**
* @deprecated since 1.20 (to be removed in 2.0)