FriendsOfShopware/shopware-rector

Cannot autowire service "Frosh\Rector\Rule\v65\RedisConnectionFactoryCreateRector"

Closed this issue · 4 comments

PHP Version

8.1

Shopware Version

6.5

Actual behaviour

[ERROR] Cannot autowire service "Frosh\Rector\Rule\v65\RedisConnectionFactoryCreateRector": argument
"$nodesToAddCollector" of method "__construct()" has type "Rector\PostRector\Collector\NodesToAddCollector" but
this class was not found.

Expected behaviour

.

Steps to Reproduce?

./vendor/bin/rector process src

@shyim I am getting the same error

 [ERROR] Cannot autowire service "Frosh\Rector\Rule\v65\RedisConnectionFactoryCreateRector": argument                   
         "$nodesToAddCollector" of method "__construct()" has type "Rector\PostRector\Collector\NodesToAddCollector" but
         this class was not found.    

use rector 0.15.7 instead of 0.17.2

"rector/rector": "~0.15.7",

The last working version with this NodesToAddCollector is 0.17.0.

The NodesToAddCollector class was deprecated and has been removed.

shyim commented

Fixed by 0.2.0