src/WordPress/WpHookReplacer.php
public function apply_filters($value, $args)
    {
        try {
            $value = $this->wpHook->apply_filters($value, $args);
        } catch (StoppedPropagationExceptionInterface $stoppedPropagationException) {
            $event = $stoppedPropagationException->getEvent();
            $value = $event->getParam(0);
        }

        return $value;
    }
public function apply_filters($value, $args)
    {
        try {
            $value = $this->wpHook->apply_filters($value, $args);
        } catch (StoppedPropagationExceptionInterface $stoppedPropagationException) {
            $event = $stoppedPropagationException->getEvent();
            $value = $event->getParam(0);
        }

        return $value;
    }
Calls the callback functions added to a filter hook.

This method is called instead of `$this->wpHook->apply_filters()`. This is done due to the fact that calls to
existing methods are not passed on to the `__call()` magic method.

@param mixed $value The value to filter.
@param array $args  Arguments to pass to callbacks.

@return mixed The filtered value after all hooked functions are applied to it.