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
chore: unify tests not agnostic of PHP version #7581
chore: unify tests not agnostic of PHP version #7581
Conversation
Co-authored-by: Dariusz Rumiński <dariusz.ruminski@gmail.com>
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.
(marker for myself)
tests/Fixer/FunctionNotation/NullableTypeDeclarationForDefaultNullValueFixerTest.php
Show resolved
Hide resolved
tests/Fixer/FunctionNotation/NullableTypeDeclarationForDefaultNullValueFixerTest.php
Outdated
Show resolved
Hide resolved
Co-authored-by: Dariusz Rumiński <dariusz.ruminski@gmail.com>
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.
(marker for myself)
@@ -63,7 +63,7 @@ function foo(){} | |||
', | |||
]; | |||
|
|||
if (\PHP_VERSION_ID >= 8_01_00) { | |||
if (\defined('T_AMPERSAND_FOLLOWED_BY_VAR_OR_VARARG')) { // @TODO: drop condition when PHP 8.1+ is required |
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.
-1, please replace to dataprovider for 8.1.
very same reasoning. I think I already shared that ;)
#7580 (comment)
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.
And I've already shared I can't. If you can, maybe can you demonstrate it?
No description provided.