Skip to content

Commit

Permalink
make addCall accessible again. fixes #2887
Browse files Browse the repository at this point in the history
It also reintroduces _addCall() as a deprecated alias.
  • Loading branch information
splitbrain committed Oct 31, 2019
1 parent 1eb5227 commit 31c0895
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion inc/parser/handler.php
Expand Up @@ -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
*
Expand Down

0 comments on commit 31c0895

Please sign in to comment.