nikic / PHP-Parser

A PHP parser written in PHP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Remove redundant parameter

PavelSPN opened this issue · comments

As the "__construct(Expr $value, Expr $key = null, bool $byRef = false, array $attributes = [], bool $unpack = false)" function (in ArrayItem.php) expects 1-5 parameters it would be better to remove redundant parameter in the Php7.php & Php5.php files to prevent possible issues in future.
These issues are found after PHP Stan checks.
Pull request created: #920
Patch added.
remove_redundant_parameter.patch

Pull request has been merged, so closing this.