diff --git a/lib/Twig/Error.php b/lib/Twig/Error.php index 98513a57a..ccc7af9e8 100644 --- a/lib/Twig/Error.php +++ b/lib/Twig/Error.php @@ -130,25 +130,6 @@ class Twig_Error extends Exception $this->updateRepr(); } - /** - * For PHP < 5.3.0, provides access to the getPrevious() method. - * - * @param string $method The method name - * @param array $arguments The parameters to be passed to the method - * - * @return Exception The previous exception or null - * - * @throws BadMethodCallException - */ - public function __call($method, $arguments) - { - if ('getprevious' == strtolower($method)) { - return $this->previous; - } - - throw new BadMethodCallException(sprintf('Method "Twig_Error::%s()" does not exist.', $method)); - } - public function appendMessage($rawMessage) { $this->rawMessage .= $rawMessage; diff --git a/lib/Twig/Extension/Core.php b/lib/Twig/Extension/Core.php index 77963604d..2da007748 100644 --- a/lib/Twig/Extension/Core.php +++ b/lib/Twig/Extension/Core.php @@ -1,10 +1,5 @@ =') --TEMPLATE-- {{ 'foo'|magic_call_string }} {{ 'foo'|magic_call_array }}