php - Cakephp upgrading from 3.6.16 to 4.2 rector command not working bin/cake upgrade rector --rules phpunit80 C:Apache24htdocsTechno ests

I am upgrading the existingCakephp-3.6.16
toCakephp-4.2
and when firing the below step-4Rector
command it return the PHP Fatal error.
I followed the below steps for the upgrade
1 Install the upgrade tool
git clone git://github.com/cakephp/upgrade
cd upgrade
git checkout master
composer install --no-dev
- Rename locale files [This command run successfully]
C:\Apache24\htdocs\latest\Techno\upgrade\bin>cake upgrade file_rename locales C:/Apache24/htdocs/latest/Techno
- This command run successfully and upgrade .crt file to .php in “src/templates” folder and the folder is now moved from “Techno/src/templates” to root folder “Techno/templates”.
C:\Apache24\htdocs\latest\Techno\upgrade> cake upgrade file_rename templates C:/Apache24/htdocs/latest/Techno
- This two Rector Refactorings commands are not working and throwing error
C:\Apache24\htdocs\latest\Techno\upgrade\bin> cake upgrade rector --rules phpunit80 C:/Apache24/htdocs/latest/Techno/tests
C:\Apache24\htdocs\latest\Techno\upgrade\bin> cake upgrade rector --rules cakephp40 C:/Apache24/htdocs/latest/Techno/src
PHP Fatal error: Uncaught Error: Class 'Rector\Core\Console\Style\SymfonyStyleFactory' not found in C:\Apache24\htdocs\Techno\upgrade\vendor\rector\rector\bin\rector.php:38
Stack trace:
#0 C:\Apache24\htdocs\Techno\upgrade\vendor\rector\rector\bin\rector(4): require_once()
#1 {main}
thrown in C:\Apache24\htdocs\Techno\upgrade\vendor\rector\rector\bin\rector.php on line 38
Fatal error: Uncaught Error: Class 'Rector\Core\Console\Style\SymfonyStyleFactory' not found in C:\Apache24\htdocs\Techno\upgrade\vendor\rector\rector\bin\rector.php:38
Stack trace:
#0 C:\Apache24\htdocs\Techno\upgrade\vendor\rector\rector\bin\rector(4): require_once()
#1 {main}
thrown in C:\Apache24\htdocs\Techno\upgrade\vendor\rector\rector\bin\rector.php on line 38
Is there any steps I missed for upgradaion ?
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: port 80 in use by "unable to open process" with pid 4!
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.