Skip to content

Commit 68ca63f

Browse files
committed
Use strict comparison for "*" error expectations
Otherwise an expectation for code 0 is treated like a wildcard.
1 parent 2e88e87 commit 68ca63f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PEAR.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ protected static function _raiseError($object,
542542
count($object->_expected_errors) > 0 &&
543543
count($exp = end($object->_expected_errors))
544544
) {
545-
if ($exp[0] == "*" ||
545+
if ($exp[0] === "*" ||
546546
(is_int(reset($exp)) && in_array($code, $exp)) ||
547547
(is_string(reset($exp)) && in_array($message, $exp))
548548
) {

0 commit comments

Comments
 (0)