* [DowngradePhp70] [WIP] Add DowngradeDefineArrayConstantRector
* add fixture
* create const
* it works
* skip inside method or inside function
* register DowngradeDefineArrayConstantRector to downgrade-php70 config set
* skip not in expression
* phpstan
* final touch
* ensure expression expr is a define func call
* final touch
* [ci-review] Rector Rectify
* working prototype
* update to Expression
* config
* phpstan
* final touch
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
Co-authored-by: TomasVotruba <tomas.vot@gmail.com>
* [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>