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

Phase 1 - Refactor to support Rector 0.17 #238

Merged
merged 8 commits into from
Aug 17, 2023

Conversation

bbrala
Copy link
Collaborator

@bbrala bbrala commented Aug 16, 2023

Description

This are all the changes that were needed from the stan-fails branch to work on rector 0.17.x. Cleaned up with readable commits. Also; we do not need:

  1. The weird BC attribute in phpstan.neon
  2. The change to phpunit 10 setlist

@bbrala bbrala changed the title Refactor to support Rector 0.17 Phase 1 - Refactor to support Rector 0.17 Aug 16, 2023
Copy link
Contributor

@agentrickard agentrickard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One clarifying question and an agreement on using a Trait.

We could move the Trait work to a new PR or do it here.

@@ -8,7 +8,7 @@

return static function (\Rector\Config\RectorConfig $rectorConfig): void {
$rectorConfig->sets([
PHPUnitSetList::PHPUNIT_91
PHPUnitSetList::PHPUNIT_90
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bbrala This feels like a regresssion, even though it probably is not.

Any idea why this change is required?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The list for PHPUnit 9.1 has been deprecated and replaces with the 100 version. But, since core doesn't really support PhpUnit 10, it seems weird to add that list.

Its changes like this one: sebastianbergmann/phpunit#4087 which is a change to PHPUnit 10. Should core start using PHPUnit 10, then we might need this?

That was my thought process at least.

@agentrickard agentrickard added question Further information is requested priority labels Aug 17, 2023
@agentrickard agentrickard merged commit fb20aac into palantirnet:main Aug 17, 2023
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority question Further information is requested
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants