-
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 first rule for sulu rector #1
Add first rule for sulu rector #1
Conversation
59eb030
to
d46f924
Compare
Seems like I'm currently missing something in the test setup. I run into:
/cc @TomasVotruba Quick Setup Script if you want try locallygit clone [email protected]:alexander-schranz/sulu-rector.git
cd sulu-rector/
git checkout feature/first-rule
composer update
composer test |
My rought guess would be: composer install Why? When you use I recommend using "rector/rector" as standard and downgraded to PHP 7.1. The "rector/rector-src" is only for core Rector packages and require PHP 8.1 |
The best inspiration of 3rd party using Rector for upgrades would be: We help to set the repository up, so all the Rector best practise are applied :) it might help you to grasp the quickly |
d46f924
to
d3dd397
Compare
@TomasVotruba Thx for the quick response and thx for the reference project. Was using |
👍 I'd like to run it locally myself, but I'm not skilled in git to manage fork and remote PR easily. |
<?php | ||
|
||
class SomeClass { | ||
public function someMethod(\Sulu\Component\Localization\Localization $localization) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this class exist in "require-dev" dependencies of composer.json
or local /stubs
directory?
Without existing class, PHPStan cannot find it nor analyse it.
d3dd397
to
d025b8e
Compare
Btw, if you would do fixup commits instead of force push, it would easier for me to review what is new/changed since last commit 👍 |
The branch can be checkout locally this way: git clone [email protected]:alexander-schranz/sulu-rector.git
cd sulu-rector/
git checkout feature/first-rule
composer update
composer test Or if you already cloned this repository you can add an additional remote and checkout then the branch from that one: git remote add alex [email protected]:alexander-schranz/sulu-rector.git
git fetch alex
git checkout -b feature/first-rule alex/feature/first-rule
composer update
composer test I still did gave you permisson to both this and the fork repository. |
This pull request should contain the first rule which should upgrade the deprecated methods on the https://github.com/sulu/sulu/blob/2.5/src/Sulu/Component/Localization/Localization.php object.