-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Console] Require PHP 7 for ApplicationTest #23934
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
[Console] Require PHP 7 for ApplicationTest #23934
Conversation
I suggest to use an |
ace9db6
to
c131a47
Compare
Changes made per request above. Branch rebased. |
@@ -33,6 +33,9 @@ | |||
use Symfony\Component\Console\Exception\CommandNotFoundException; | |||
use Symfony\Component\EventDispatcher\EventDispatcher; | |||
|
|||
/** | |||
* @requires PHP 7 |
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.
Only methods which use PHP7 features should be annotated
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.
Updated and rebased
c131a47
to
94d55ca
Compare
Good catch, thanks @siwinski. |
This PR was merged into the 3.3 branch. Discussion ---------- [Console] Require PHP 7 for ApplicationTest | Q | A | ------------- | --- | Branch? | 3.3 <!-- see comment below --> | Bug fix? | no | New feature? | no <!-- don't forget updating src/**/CHANGELOG.md files --> | BC breaks? | no | Deprecations? | no <!-- don't forget updating UPGRADE-*.md files --> | Tests pass? | yes | Fixed tickets | <!-- #-prefixed issue number(s), if any --> | License | MIT | Doc PR | <!--highly recommended for new features--> Since [ApplicationTest](https://github.com/symfony/symfony/blob/3.3/src/Symfony/Component/Console/Tests/ApplicationTest.php) uses the `Error` class, this component should require-dev `symfony/polyfill-php70` Commits ------- 94d55ca [Console] Require PHP 7 for ApplicationTest
Since ApplicationTest uses the
Error
class, this component should require-devsymfony/polyfill-php70