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

Fix transforming deprecations into exceptions #5730

Merged

Conversation

julienfalque
Copy link
Member

Fixes #5729.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.01%) to 91.563% when pulling 6f74ce3 on julienfalque:fix-deprecation-to-exception into f196ab0 on FriendsOfPHP:2.19.

{
if (getenv('PHP_CS_FIXER_FUTURE_MODE')) {
throw new $exceptionClass("{$message} This check was performed as `PHP_CS_FIXER_FUTURE_MODE` env var is set.");
Copy link
Member

Choose a reason for hiding this comment

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

TLDR - this was not working for InvalidFixerConfigurationException which has a constructor prototype of $name, $description and not $description only

@keradus keradus added this to the 2.19.1 milestone May 24, 2021
@kubawerlos kubawerlos added the RTM Ready To Merge label May 24, 2021
@SpacePossum SpacePossum removed the RTM Ready To Merge label May 25, 2021
@SpacePossum
Copy link
Contributor

Thank you @julienfalque.

@SpacePossum SpacePossum merged commit 4348684 into PHP-CS-Fixer:2.19 May 25, 2021
@julienfalque julienfalque deleted the fix-deprecation-to-exception branch May 25, 2021 07:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants