Skip to content

Commit

Permalink
Merge pull request #614 from singinwhale/master
Browse files Browse the repository at this point in the history
Fixed deprecation warning in DisableConstructorPatch.php
  • Loading branch information
stof committed Mar 11, 2024
2 parents 67a759e + dae7a95 commit bce45de
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function apply(ClassNode $node)

$constructor->setCode(<<<PHP
if (0 < func_num_args()) {
call_user_func_array(array('parent', '__construct'), func_get_args());
call_user_func_array(array(parent::class, '__construct'), func_get_args());
}
PHP
);
Expand Down

0 comments on commit bce45de

Please sign in to comment.