@@ -109,7 +109,7 @@ public static function register($mode = 0)
109109 'remaining vendor ' => array (),
110110 );
111111 $ 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 ()) {
113113 return \call_user_func (DeprecationErrorHandler::getPhpUnitErrorHandler (), $ type , $ msg , $ file , $ line , $ context );
114114 }
115115
@@ -285,7 +285,7 @@ public static function collectDeprecations($outputFile)
285285 {
286286 $ deprecations = array ();
287287 $ 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 ' ))) {
289289 if ($ previousErrorHandler ) {
290290 return $ previousErrorHandler ($ type , $ msg , $ file , $ line , $ context );
291291 }
@@ -314,7 +314,7 @@ public static function getPhpUnitErrorHandler()
314314 return (class_exists ('PHPUnit_Util_ErrorHandler ' , false ) ? 'PHPUnit_Util_ ' : 'PHPUnit\Util \\' ).'ErrorHandler::handleError ' ;
315315 }
316316
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 ) {
318318 if (isset ($ frame ['object ' ]) && $ frame ['object ' ] instanceof TestResult) {
319319 return new ErrorHandler (
320320 $ frame ['object ' ]->getConvertDeprecationsToExceptions (),
@@ -348,21 +348,21 @@ private static function hasColorSupport()
348348
349349 if (\DIRECTORY_SEPARATOR === '\\' ) {
350350 return (\function_exists ('sapi_windows_vt100_support ' )
351- && sapi_windows_vt100_support (STDOUT ))
351+ && sapi_windows_vt100_support (\ STDOUT ))
352352 || false !== getenv ('ANSICON ' )
353353 || 'ON ' === getenv ('ConEmuANSI ' )
354354 || 'xterm ' === getenv ('TERM ' );
355355 }
356356
357357 if (\function_exists ('stream_isatty ' )) {
358- return stream_isatty (STDOUT );
358+ return stream_isatty (\ STDOUT );
359359 }
360360
361361 if (\function_exists ('posix_isatty ' )) {
362- return posix_isatty (STDOUT );
362+ return posix_isatty (\ STDOUT );
363363 }
364364
365- $ stat = fstat (STDOUT );
365+ $ stat = fstat (\ STDOUT );
366366 // Check if formatted mode is S_IFCHR
367367 return $ stat ? 0020000 === ($ stat ['mode ' ] & 0170000 ) : false ;
368368 }
0 commit comments