-
Notifications
You must be signed in to change notification settings - Fork 4
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
Add upgrade for rename getUsername to getUserIdentifier #7
Add upgrade for rename getUsername to getUserIdentifier #7
Conversation
I don't get why this is failing in the CI 🤔 it seems to work correctly locally. |
@TomasVotruba Sorry for pinging you but I'm little bit lost again. Do you have any hint what is going wrong here? It works locally for me: git clone [email protected]:sulu/sulu-rector.git
cd sulu-rector/
git remote add alex [email protected]:alexander-schranz/sulu-rector.git
git fetch alex
git checkout feature/replace-user-name-with-user-identifier-method
composer install
composer test but the rule just don't work in the CI which is very strange. Even checked if the CI installs other dependencies but they are the same. Also did |
I've just tested for a while locally to find this fix: rectorphp/rector-src@cbebb9a Basically this rename would break parent interface contract. Untill the Symfony require parent interface, the method rename would cause a BC break: public function getUsername(); Yet, in this case, the change could be done in an interface 👍 I'll see if we can improve it |
This should help: rectorphp/rector-src#2362 Could you try rector dev-main? |
See #8 |
eb5bb87
to
888eb72
Compare
This will already rename the sulu users
getUsername
togetUserIdentifier
.Try out this PR by copy following in your unix shell:
Upgrade for: sulu/sulu#6626