src/View/Helper/Proxy/HelperProxy.php
public function call($method, $args = [], $expect = self::EXPECT_SELF)
    {
        if (!is_array($args)) {
            $expect = $args;
            $args   = [];
        }

        if (!$this->helper) {
            return $this->expected($expect);
        }

        return call_user_func_array([$this->helper, $method], $args);
    }
public function call($method, $args = [], $expect = self::EXPECT_SELF)
    {
        if (!is_array($args)) {
            $expect = $args;
            $args   = [];
        }

        if (!$this->helper) {
            return $this->expected($expect);
        }

        return call_user_func_array([$this->helper, $method], $args);
    }
public function call ( $ method , $ args = [ ] , $ expect = self :: EXPECT_SELF ) { if ( ! is_array ( $ args ) ) { $ expect = $ args ; $ args = [ ] ; } if ( ! $ this -> helper ) { return $ this -> expected ( $ expect ) ; } return call_user_func_array ( [ $ this -> helper , $ method ] , $ args ) ; }
Call a method on the proxied plugin.

If a helper instance exists, the returned value from the method call is returned,
otherwise the $expect value is returned,

If the $args is no array, it is used as $expect.

If you need to expect an array, you must pass in an empty array for $args and
specify your expected array in the $expect variable, however if you expect an
empty array, you can pass {@link EXPECT_ARRAY}.

@param string $method
@param array|mixed  $args
@param mixed $expect

@return mixed
Call a method on the proxied plugin .