Skip to content

Commit 6662677

Browse files
Merge branch '4.3' into 4.4
* 4.3: [Process] fix typo in tests
2 parents 09a6d2d + 8aa3e35 commit 6662677

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
@@ -96,7 +96,7 @@ public static function collectDeprecations($outputFile)
9696
{
9797
$deprecations = [];
9898
$previousErrorHandler = set_error_handler(function ($type, $msg, $file, $line, $context = []) use (&$deprecations, &$previousErrorHandler) {
99-
if (E_USER_DEPRECATED !== $type && E_DEPRECATED !== $type && (E_WARNING !== $type || false === strpos($msg, '" targeting switch is equivalent to "break')) {
99+
if (E_USER_DEPRECATED !== $type && E_DEPRECATED !== $type && (E_WARNING !== $type || false === strpos($msg, '" targeting switch is equivalent to "break'))) {
100100
if ($previousErrorHandler) {
101101
return $previousErrorHandler($type, $msg, $file, $line, $context);
102102
}
@@ -119,7 +119,7 @@ public static function collectDeprecations($outputFile)
119119
*/
120120
public function handleError($type, $msg, $file, $line, $context = [])
121121
{
122-
if ((E_USER_DEPRECATED !== $type && E_DEPRECATED !== $type && (E_WARNING !== $type || false === strpos($msg, '" targeting switch is equivalent to "break')) || !$this->getConfiguration()->isEnabled()) {
122+
if ((E_USER_DEPRECATED !== $type && E_DEPRECATED !== $type && (E_WARNING !== $type || false === strpos($msg, '" targeting switch is equivalent to "break'))) || !$this->getConfiguration()->isEnabled()) {
123123
return \call_user_func(self::getPhpUnitErrorHandler(), $type, $msg, $file, $line, $context);
124124
}
125125

0 commit comments

Comments
 (0)