Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[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

Merged
merged 1 commit into from
Sep 20, 2018
Merged

[PhpUnitBridge] fix disabling DeprecationErrorHandler using phpunit.xml file #28524

merged 1 commit into from
Sep 20, 2018

Conversation

soerenbernstein
Copy link
Contributor

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

&& DeprecationErrorHandler::MODE_WEAK !== $mode
&& DeprecationErrorHandler::MODE_WEAK_VENDORS !== $mode
&& (!isset($mode[0]) || '/' !== $mode[0])
) {
Copy link
Member

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

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)

@nicolas-grekas nicolas-grekas changed the title Update DeprecationErrorHandler.php [PhpUnitBridge] fix disabling DeprecationErrorHandler using phpunit.xml file Sep 20, 2018
@nicolas-grekas nicolas-grekas added this to the 3.4 milestone Sep 20, 2018
@nicolas-grekas
Copy link
Member

@soerenbernstein I suppose you confirm this fixes the issue and allows disabling the bridge using the phpunit.xml file?

@soerenbernstein
Copy link
Contributor Author

Yes. And it will actually set the mode to "disabled" for future use.

@nicolas-grekas nicolas-grekas changed the base branch from master to 3.4 September 20, 2018 07:47
@nicolas-grekas
Copy link
Member

Thank you @soerenbernstein.

@nicolas-grekas nicolas-grekas merged commit 3cd929b into symfony:3.4 Sep 20, 2018
nicolas-grekas added a commit that referenced this pull request Sep 20, 2018
…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
@soerenbernstein soerenbernstein deleted the patch-1 branch September 20, 2018 07:50
This was referenced Sep 30, 2018
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.

3 participants