Skip to content

Commit

Permalink
Merge pull request #127 from andrewnicols/correctConstructor
Browse files Browse the repository at this point in the history
Update constructor usage of call_user_func_array
  • Loading branch information
andrewnicols authored Aug 20, 2024
2 parents c8d4e35 + e7c7d5c commit 3b443cb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Html2Text.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3b443cb

Please sign in to comment.