Skip to content
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

Merged
merged 1 commit into from Jan 2, 2019
Merged

[7.3] ErrorSuppressionFixer - support PHP 7.3 #4202

merged 1 commit into from Jan 2, 2019

Conversation

kubawerlos
Copy link
Contributor

Handles also SilencedDeprecationErrorFixer and it's proxy to ErrorSuppressionFixer.


return $tokens[$tokens->getPrevMeaningfulToken($end)]->equals([T_STRING, 'E_USER_DEPRECATED']);
$prevIndex = $tokens->getPrevMeaningfulToken($endBraceIndex);
Copy link
Member

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 :(

Copy link
Contributor Author

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,
Copy link
Member

Choose a reason for hiding this comment

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

👍

@keradus keradus modified the milestones: 2.12.5, 2.12.6 Jan 1, 2019
@keradus keradus added the RTM Ready To Merge label Jan 2, 2019
@SpacePossum
Copy link
Contributor

Thank you @kubawerlos.

@SpacePossum SpacePossum merged commit e7aa9fc into PHP-CS-Fixer:2.12 Jan 2, 2019
SpacePossum added a commit that referenced this pull request Jan 2, 2019
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
@SpacePossum SpacePossum removed the RTM Ready To Merge label Jan 2, 2019
@kubawerlos kubawerlos deleted the fix-php73-error-suppression branch January 2, 2019 09:07
@keradus keradus mentioned this pull request Jan 2, 2019
20 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants