removed optimization as it's not compatible with Symfony cache system

This commit is contained in:
Fabien Potencier
2016-11-12 19:21:08 -08:00
parent a50f765ad9
commit d64d320b4a
2 changed files with 0 additions and 15 deletions
-6
View File
@@ -10,10 +10,6 @@
* file that was distributed with this source code.
*/
if (PHP_VERSION_ID >= 50600) {
require_once __DIR__.'/twig_call_method.php';
}
/**
* Default base class for compiled templates.
*
@@ -635,8 +631,6 @@ abstract class Twig_Template implements Twig_TemplateInterface
try {
if (!$arguments) {
$ret = $object->$method();
} elseif (PHP_VERSION_ID >= 50600) {
$ret = twig_call_method($object, $method, $arguments);
} else {
$ret = call_user_func_array(array($object, $method), $arguments);
}
-9
View File
@@ -1,9 +0,0 @@
<?php
/**
* @internal
*/
function twig_call_method($object, $method, $arguments)
{
return $object->$method(...$arguments);
}