From 31c0895a7b91fad19cbf15cc5bff90d63ce704ef Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Thu, 31 Oct 2019 15:32:51 +0100 Subject: [PATCH] make addCall accessible again. fixes #2887 It also reintroduces _addCall() as a deprecated alias. --- inc/parser/handler.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/inc/parser/handler.php b/inc/parser/handler.php index 19c2aafe87..9fb71b4cda 100644 --- a/inc/parser/handler.php +++ b/inc/parser/handler.php @@ -44,11 +44,17 @@ public function __construct() { * @param mixed $args arguments for this call * @param int $pos byte position in the original source file */ - protected function addCall($handler, $args, $pos) { + public function addCall($handler, $args, $pos) { $call = array($handler,$args, $pos); $this->callWriter->writeCall($call); } + /** @deprecated 2019-10-31 use addCall() instead */ + public function _addCall($handler, $args, $pos) { + dbg_deprecated('addCall'); + $this->addCall($handler, $args, $pos); + } + /** * Similar to addCall, but adds a plugin call *