Skip to content

Fix phpunit error on rector/rector:dev-main due to container cache with VersionResolver::PACKAGE_VERSION still @package_version@#3865

Merged
samsonasik merged 7 commits intomainfrom
fix-test-error-
May 16, 2023
Merged

Fix phpunit error on rector/rector:dev-main due to container cache with VersionResolver::PACKAGE_VERSION still @package_version@#3865
samsonasik merged 7 commits intomainfrom
fix-test-error-

Conversation

@samsonasik
Copy link
Copy Markdown
Member

@samsonasik samsonasik commented May 16, 2023

@samsonasik samsonasik merged commit 5d78e95 into main May 16, 2023
@samsonasik samsonasik deleted the fix-test-error- branch May 16, 2023 04:24
return;
}

if (VersionResolver::PACKAGE_VERSION !== '@package_version@') {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

is this condition the "proper" way to detect a prefixed build?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

The prefixed build got random value for it, so it is a quick solution imo, feel free to provide a better way if you have

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

here you are #3869

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

Successfully merging this pull request may close these issues.

3 participants