Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 1373a5b

Browse filesBrowse files
Fix backport
1 parent 8fe02a8 commit 1373a5b
Copy full SHA for 1373a5b

File tree

Expand file treeCollapse file tree

1 file changed

+4
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-1
lines changed

‎src/Symfony/Bridge/PhpUnit/DeprecationErrorHandler.php

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/PhpUnit/DeprecationErrorHandler.php
+4-1Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ public static function register($mode = 0)
131131
restore_error_handler();
132132
self::register($mode);
133133
}
134-
} elseif (!isset($mode[0]) || '/' !== $mode[0]) {
134+
} else {
135135
self::$isRegistered = true;
136136
if (self::hasColorSupport()) {
137137
$colorize = function ($str, $red) {
@@ -144,6 +144,9 @@ public static function register($mode = 0)
144144
}
145145
register_shutdown_function(function () use ($getMode, &$deprecations, $deprecationHandler, $colorize) {
146146
$mode = $getMode();
147+
if (isset($mode[0]) && '/' === $mode[0]) {
148+
return;
149+
}
147150
$currErrorHandler = set_error_handler('var_dump');
148151
restore_error_handler();
149152

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.