nikic / PHP-Parser

A PHP parser written in PHP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

php-parser v4.19.0 got deprecated Optional parameter before required parameter on PrintableNewAnonClassNode.php

samsonasik opened this issue · comments

on php-parser v4.19.0, we tried using on rector-src, and got error:

PHP Deprecated:  Optional parameter $extends declared before required parameter $attributes is implicitly treated as a required parameter in /Users/samsonasik/www/rector-src/vendor/nikic/php-parser/lib/PhpParser/Internal/PrintableNewAnonClassNode.php on line 33
Deprecated: Optional parameter $extends declared before required parameter $attributes is implicitly treated as a required parameter in /Users/samsonasik/www/rector-src/vendor/nikic/php-parser/lib/PhpParser/Internal/PrintableNewAnonClassNode.php on line 33

I created a patch on: