Abdul Malik Ikhsan bd2c7aee9f
[DowngradePhp70] Add DowngradeAnonymousClassRector (#6122)
* [DowngradePhp70] [WIP] Add DowngradeAnonymousClassRector

* typo

* add test

* check is anonymous

* adding new Anonymous class before class

* anonymous class must have New_ parent

* getting args

* without param

* with args fixture

* adding with args

* debug

* with args

* getting args from next attribute

* try move to New_

* skip not anonymous

* try using New_

* [ci-review] Rector Rectify

* it works with New_ node

* with addNodeBeforeNode()

* class exists fixture

* adding increment class if exists

* implemented increment class name for inside class

* handle no namespace

* in function

* in function no namespace

* works

* register to downgrade php70 set

* [ci-review] Rector Rectify

* typo fix

* phpstan

* [ci-review] Rector Rectify

* add handle in closure

Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-04-14 19:55:20 +02:00
..