diff --git a/src/Html2Text.php b/src/Html2Text.php index e33caa4..6e0f9e5 100644 --- a/src/Html2Text.php +++ b/src/Html2Text.php @@ -242,7 +242,9 @@ public function __construct($html = '', $options = array()) // for backwards compatibility if (!is_array($options)) { - return call_user_func_array(array($this, 'legacyConstruct'), func_get_args()); + // phpcs:ignore (PHPCompatibility.FunctionUse.ArgumentFunctionsReportCurrentValue.NeedsInspection + call_user_func_array(array($this, 'legacyConstruct'), func_get_args()); + return; } $this->html = $html;