Closed themark147 closed 6 months ago
@samsonasik Hey, I already implemented a patch what u provide ... hope its fine :))
Could you CI error :) ? You can reproduce locally for that, first, install the dependencies:
export COMPOSER_ROOT_VERSION=dev-main && composer install
Then, run:
vendor/bin/phpunit
then patch it, after that, run:
vendor/bin/rector && composer fix-cs
then, verify if there is phpstan error:
vendor/bin/phpstan
if the error is code complexity, move the code to separate private method, then run once more:
vendor/bin/rector && composer fix-cs
Thank you.
@samsonasik I already tried use that patch to refactor real project and it refactor well just called methods still remains NON static EDIT: I tried to used Rector\Php70\Rector\StaticCall\StaticCallOnNonStaticToInstanceCallRector as well
this currently skipped on latest main, so I am closing it.
Could you try provide a patch as well, it should be something like this:
before set:
on line 108.
If you phpstan notice on code too complex, you can move to separate private method and call it.
After that, run: