-
Notifications
You must be signed in to change notification settings - Fork 81
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
[rector] add more default sets, bump php cs fixer, phpunit #260
base: 2.5
Are you sure you want to change the base?
Conversation
38262fc
to
ed77ec4
Compare
SymfonySetList::SYMFONY_CONSTRUCTOR_INJECTION, | ||
// activate when doing updates: | ||
// SymfonyLevelSetList::UP_TO_SYMFONY_63, | ||
// activate when doing updates: | ||
// PHPUnitLevelSetList::UP_TO_PHPUNIT_90, | ||
// PHPUnitSetList::PHPUNIT_91, |
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.
I've bumped the PHPUnit to 10, which is the highest version with BC changes so far, so no need for extra upgrade sets.
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.
What is strange is that a basic symfony still installs PHPUnit 9:
composer create-project symfony/skeleton
cd skeleton
composer require test
Need todo some research why it is so 🤔
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.
0fb3cde
to
1794f07
Compare
Good to go 👍 |
1794f07
to
1229a18
Compare
1229a18
to
7a736f9
Compare
If I may suggest, phpunit-bridge is suitable for developing symfony/symfony core monorepo, as they need to test various conflicting PHP versions. Not for own tools/projects. |
Just an experiment to see if CI passes 👍 |
if (\is_file(\dirname(__DIR__) . '/vendor/phpunit/phpunit/phpunit')) { | ||
\define('PHPUNIT_COMPOSER_INSTALL', \dirname(__DIR__) . '/vendor/autoload.php'); | ||
require PHPUNIT_COMPOSER_INSTALL; | ||
PHPUnit\TextUI\Command::main(); |
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.
This class does not exist anymore, that's why CI was failing.
There is no added value of this custom bin file over vendor/bin/phpunit
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.
will check this with the symfony recipe. because if we don't provide it the flex recipe will automatically create it.
I tried the config in a existing project and stumbled over an unexpected behaviour trying out the config. The project using PHPUnit 9. Rector wants to update the attributes, think would nice to avoid that if PHPUnit 9 is used as I think attributes only supported by PHPUnit 10?: rector.php
|
I'll look into Rector attribute sets. There |
I know but is there a way to use this config and still use PHPUnit 9 avoid the attributes upgrade only for PHPUnit? In some other cases were we use Rector we want to use same configs. Maybe we can fix it directly in |
The CI error looks unrelated to your changes. I will have a look at it. PS: Like the codeQuality rules nice little catches in them 👍 |
Not yet, but I'll add it to Rector. Valid point 👍 |
My work is done here, need to continue upgrading :) |
@TomasVotruba thank you :) |
No description provided.