Skip to content

Commit d48735a

Browse files
Merge branch '4.4'
* 4.4: [Process] fix typo in tests
2 parents 015bb30 + 6662677 commit d48735a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

DeprecationErrorHandler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public static function collectDeprecations($outputFile)
9191
{
9292
$deprecations = [];
9393
$previousErrorHandler = set_error_handler(function ($type, $msg, $file, $line, $context = []) use (&$deprecations, &$previousErrorHandler) {
94-
if (E_USER_DEPRECATED !== $type && E_DEPRECATED !== $type && (E_WARNING !== $type || false === strpos($msg, '" targeting switch is equivalent to "break')) {
94+
if (E_USER_DEPRECATED !== $type && E_DEPRECATED !== $type && (E_WARNING !== $type || false === strpos($msg, '" targeting switch is equivalent to "break'))) {
9595
if ($previousErrorHandler) {
9696
return $previousErrorHandler($type, $msg, $file, $line, $context);
9797
}
@@ -114,7 +114,7 @@ public static function collectDeprecations($outputFile)
114114
*/
115115
public function handleError($type, $msg, $file, $line, $context = [])
116116
{
117-
if ((E_USER_DEPRECATED !== $type && E_DEPRECATED !== $type && (E_WARNING !== $type || false === strpos($msg, '" targeting switch is equivalent to "break')) || !$this->getConfiguration()->isEnabled()) {
117+
if ((E_USER_DEPRECATED !== $type && E_DEPRECATED !== $type && (E_WARNING !== $type || false === strpos($msg, '" targeting switch is equivalent to "break'))) || !$this->getConfiguration()->isEnabled()) {
118118
return \call_user_func(self::getPhpUnitErrorHandler(), $type, $msg, $file, $line, $context);
119119
}
120120

0 commit comments

Comments
 (0)