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
[7.3] ErrorSuppressionFixer - support PHP 7.3 #4202
[7.3] ErrorSuppressionFixer - support PHP 7.3 #4202
Conversation
|
||
return $tokens[$tokens->getPrevMeaningfulToken($end)]->equals([T_STRING, 'E_USER_DEPRECATED']); | ||
$prevIndex = $tokens->getPrevMeaningfulToken($endBraceIndex); |
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.
i;m really sad to see this change over and over again :(
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.
yeah :( it's similar to checking for leading \
in functions/classes
@@ -11,7 +11,6 @@ PHP 7.3 test. | |||
"multiline_whitespace_before_semicolons": true, | |||
"native_function_invocation": {"include": ["get_class"]}, | |||
"php_unit_test_case_static_method_calls": {"call_type": "this"}, | |||
"silenced_deprecation_error": true, |
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.
👍
Thank you @kubawerlos. |
This PR was merged into the 2.12 branch. Discussion ---------- [7.3] ErrorSuppressionFixer - support PHP 7.3 Handles also `SilencedDeprecationErrorFixer` and it's proxy to `ErrorSuppressionFixer`. Commits ------- e7aa9fc ErrorSuppressionFixer - support PHP 7.3
Handles also
SilencedDeprecationErrorFixer
and it's proxy toErrorSuppressionFixer
.