-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[PHPUnitBridge] Add an implementation just for php 7.0 #27086
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
[PHPUnitBridge] Add an implementation just for php 7.0 #27086
Conversation
php 7 does not have the void return type.
@juliendufresne @nicolas-grekas please review |
@@ -24,7 +24,7 @@ class TestRunnerForV6 extends BaseRunner | |||
/** | |||
* {@inheritdoc} | |||
*/ | |||
protected function handleConfiguration(array &$arguments): void | |||
protected function handleConfiguration(array &$arguments) |
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.
The existing runner looses its void return type, but keeps the code changes (doesn't return anything, extends from PHPUnit\TextUI\TestRunner
)
* | ||
* @internal | ||
*/ | ||
class TestRunnerForV7 extends BaseRunner |
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 one is the former TestRunnerForV6
, renamed
Thank you @greg0ire. |
…eg0ire) This PR was merged into the 3.4 branch. Discussion ---------- [PHPUnitBridge] Add an implementation just for php 7.0 | Q | A | ------------- | --- | Branch? | 3.4, because the bug only appears on that branch and up | Bug fix? | yes | New feature? | no <!-- don't forget to update src/**/CHANGELOG.md files --> | BC breaks? | no <!-- see https://symfony.com/bc --> | Deprecations? | no <!-- don't forget to update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Tests pass? | yes <!-- please add some, will be required by reviewers --> | Fixed tickets | none | License | MIT | Doc PR | symfony/symfony-docs#... <!-- required for new features --> php 7 does not have the void return type, which means we have to have a specific class for the php 7.0 + phpunit 6 combination. Commits ------- fc69307 Add an implementation just for php 7.0
php 7 does not have the void return type, which means we have to have a specific class for the php 7.0 + phpunit 6 combination.