@@ -109,7 +109,7 @@ public static function register($mode = 0)
109
109
'remaining vendor ' => array (),
110
110
);
111
111
$ deprecationHandler = function ($ type , $ msg , $ file , $ line , $ context = array ()) use (&$ deprecations , $ getMode , $ UtilPrefix , $ inVendors ) {
112
- if ((E_USER_DEPRECATED !== $ type && E_DEPRECATED !== $ type && (E_WARNING !== $ type || false === strpos ($ msg , '" targeting switch is equivalent to "break ' ))) || DeprecationErrorHandler::MODE_DISABLED === $ mode = $ getMode ()) {
112
+ if ((\ E_USER_DEPRECATED !== $ type && \ E_DEPRECATED !== $ type && (\ E_WARNING !== $ type || false === strpos ($ msg , '" targeting switch is equivalent to "break ' ))) || DeprecationErrorHandler::MODE_DISABLED === $ mode = $ getMode ()) {
113
113
return \call_user_func (DeprecationErrorHandler::getPhpUnitErrorHandler (), $ type , $ msg , $ file , $ line , $ context );
114
114
}
115
115
@@ -285,7 +285,7 @@ public static function collectDeprecations($outputFile)
285
285
{
286
286
$ deprecations = array ();
287
287
$ previousErrorHandler = set_error_handler (function ($ type , $ msg , $ file , $ line , $ context = array ()) use (&$ deprecations , &$ previousErrorHandler ) {
288
- if (E_USER_DEPRECATED !== $ type && E_DEPRECATED !== $ type && (E_WARNING !== $ type || false === strpos ($ msg , '" targeting switch is equivalent to "break ' ))) {
288
+ if (\ E_USER_DEPRECATED !== $ type && \ E_DEPRECATED !== $ type && (\ E_WARNING !== $ type || false === strpos ($ msg , '" targeting switch is equivalent to "break ' ))) {
289
289
if ($ previousErrorHandler ) {
290
290
return $ previousErrorHandler ($ type , $ msg , $ file , $ line , $ context );
291
291
}
@@ -314,7 +314,7 @@ public static function getPhpUnitErrorHandler()
314
314
return (class_exists ('PHPUnit_Util_ErrorHandler ' , false ) ? 'PHPUnit_Util_ ' : 'PHPUnit\Util \\' ).'ErrorHandler::handleError ' ;
315
315
}
316
316
317
- foreach (debug_backtrace (DEBUG_BACKTRACE_PROVIDE_OBJECT | DEBUG_BACKTRACE_IGNORE_ARGS ) as $ frame ) {
317
+ foreach (debug_backtrace (\ DEBUG_BACKTRACE_PROVIDE_OBJECT | \ DEBUG_BACKTRACE_IGNORE_ARGS ) as $ frame ) {
318
318
if (isset ($ frame ['object ' ]) && $ frame ['object ' ] instanceof TestResult) {
319
319
return new ErrorHandler (
320
320
$ frame ['object ' ]->getConvertDeprecationsToExceptions (),
@@ -348,21 +348,21 @@ private static function hasColorSupport()
348
348
349
349
if (\DIRECTORY_SEPARATOR === '\\' ) {
350
350
return (\function_exists ('sapi_windows_vt100_support ' )
351
- && sapi_windows_vt100_support (STDOUT ))
351
+ && sapi_windows_vt100_support (\ STDOUT ))
352
352
|| false !== getenv ('ANSICON ' )
353
353
|| 'ON ' === getenv ('ConEmuANSI ' )
354
354
|| 'xterm ' === getenv ('TERM ' );
355
355
}
356
356
357
357
if (\function_exists ('stream_isatty ' )) {
358
- return stream_isatty (STDOUT );
358
+ return stream_isatty (\ STDOUT );
359
359
}
360
360
361
361
if (\function_exists ('posix_isatty ' )) {
362
- return posix_isatty (STDOUT );
362
+ return posix_isatty (\ STDOUT );
363
363
}
364
364
365
- $ stat = fstat (STDOUT );
365
+ $ stat = fstat (\ STDOUT );
366
366
// Check if formatted mode is S_IFCHR
367
367
return $ stat ? 0020000 === ($ stat ['mode ' ] & 0170000 ) : false ;
368
368
}
0 commit comments