-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[PhpUnitBridge] fix disabling DeprecationErrorHandler using phpunit.xml file #28524
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
Conversation
&& DeprecationErrorHandler::MODE_WEAK !== $mode | ||
&& DeprecationErrorHandler::MODE_WEAK_VENDORS !== $mode | ||
&& (!isset($mode[0]) || '/' !== $mode[0]) | ||
) { |
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.
indentation should be one level down here
@@ -54,7 +54,11 @@ public static function register($mode = 0) | |||
if (false === $mode) { | |||
$mode = getenv('SYMFONY_DEPRECATIONS_HELPER'); | |||
} | |||
if (DeprecationErrorHandler::MODE_WEAK !== $mode && DeprecationErrorHandler::MODE_WEAK_VENDORS !== $mode && (!isset($mode[0]) || '/' !== $mode[0])) { | |||
if (DeprecationErrorHandler::MODE_DISABLED !== $mode |
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.
please remove trailing spaces (see fabbot failure)
@soerenbernstein I suppose you confirm this fixes the issue and allows disabling the bridge using the phpunit.xml file? |
Yes. And it will actually set the mode to "disabled" for future use. |
Thank you @soerenbernstein. |
…g phpunit.xml file (soerenbernstein) This PR was submitted for the master branch but it was squashed and merged into the 3.4 branch instead (closes #28524). Discussion ---------- [PhpUnitBridge] fix disabling DeprecationErrorHandler using phpunit.xml file Fixing #28519 | Q | A | ------------- | --- | Branch? | master | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | don't know | Fixed tickets | #28519 | License | MIT Commits ------- 3cd929b [PhpUnitBridge] fix disabling DeprecationErrorHandler using phpunit.xml file
Fixing #28519