@@ -29,7 +29,7 @@ class DeprecationErrorHandler
29
29
*
30
30
* The following reporting modes are supported:
31
31
* - use "weak" to hide the deprecation report but keep a global count;
32
- * - use "weak_vendors" to act as "weak" but only for vendors ;
32
+ * - use "weak_vendors" to fail only on deprecations triggered in your own code ;
33
33
* - use "/some-regexp/" to stop the test suite whenever a deprecation
34
34
* message matches the given regular expression;
35
35
* - use a number to define the upper bound of allowed deprecations,
@@ -80,7 +80,7 @@ public static function register($mode = 0)
80
80
return true ;
81
81
}
82
82
foreach ($ vendors as $ vendor ) {
83
- if (0 === strpos ($ realPath , $ vendor ) && false !== strpbrk (substr ($ realPath , strlen ($ vendor ), 1 ), '/ ' .DIRECTORY_SEPARATOR )) {
83
+ if (0 === strpos ($ realPath , $ vendor ) && false !== strpbrk (substr ($ realPath , strlen ($ vendor ), 1 ), '/ ' .\ DIRECTORY_SEPARATOR )) {
84
84
return true ;
85
85
}
86
86
}
@@ -159,7 +159,7 @@ public static function register($mode = 0)
159
159
echo "\n" .ucfirst ($ group ).' deprecation triggered by ' .$ class .':: ' .$ method .': ' ;
160
160
echo "\n" .$ msg ;
161
161
echo "\nStack trace: " ;
162
- echo "\n" .str_replace (' ' .getcwd ().DIRECTORY_SEPARATOR , ' ' , $ e ->getTraceAsString ());
162
+ echo "\n" .str_replace (' ' .getcwd ().\ DIRECTORY_SEPARATOR , ' ' , $ e ->getTraceAsString ());
163
163
echo "\n" ;
164
164
165
165
exit (1 );
@@ -315,7 +315,7 @@ private static function hasColorSupport()
315
315
return true ;
316
316
}
317
317
318
- if (DIRECTORY_SEPARATOR === '\\' ) {
318
+ if (\ DIRECTORY_SEPARATOR === '\\' ) {
319
319
return (function_exists ('sapi_windows_vt100_support ' )
320
320
&& sapi_windows_vt100_support (STDOUT ))
321
321
|| false !== getenv ('ANSICON ' )
0 commit comments