Skip to content

Commit 3b443cb

Browse files
authored
Merge pull request #127 from andrewnicols/correctConstructor
Update constructor usage of call_user_func_array
2 parents c8d4e35 + e7c7d5c commit 3b443cb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Html2Text.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,9 @@ public function __construct($html = '', $options = array())
242242

243243
// for backwards compatibility
244244
if (!is_array($options)) {
245-
return call_user_func_array(array($this, 'legacyConstruct'), func_get_args());
245+
// phpcs:ignore (PHPCompatibility.FunctionUse.ArgumentFunctionsReportCurrentValue.NeedsInspection
246+
call_user_func_array(array($this, 'legacyConstruct'), func_get_args());
247+
return;
246248
}
247249

248250
$this->html = $html;

0 commit comments

Comments
 (0)