Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why am I getting an old version of rector? #5320

Closed
jkester1986 opened this issue Jan 26, 2021 · 3 comments
Closed

Why am I getting an old version of rector? #5320

jkester1986 opened this issue Jan 26, 2021 · 3 comments

Comments

@jkester1986
Copy link

Question

I ran composer require rector/rector --dev, then vendor/rector/rector/bin/rector init. This is the output:

Rector v0.5.23
                                  
  Command "init" is not defined.  
                                  

I know this is an old version of Rector, but I have no idea how to get an up-to-date version

@TomasVotruba
Copy link
Member

Hi, probably other packages in your project. Composer can only install packages that are compatible with them.

Try: https://github.com/rectorphp/rector-prefixed

What PHP version do you use?

@jkester1986
Copy link
Author

was using PHP 7.1. Switched over to 7.2, I think I'm ok now? I don't see anything in the readme mentioning what version to use, but the init command did work now.

@TomasVotruba
Copy link
Member

TomasVotruba commented Jan 26, 2021

Good 👍

Each tag uses different version, you can see it in composer.json. E.g. last one uses PHP 7.3 as min:

"php": "^7.3|^8.0",

TomasVotruba added a commit that referenced this issue Dec 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants