Skip to content

Commit 2227127

Browse files
committed
Fix type error
1 parent bfa9e76 commit 2227127

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PcreException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ private static function pcreLastErrorMessage($code)
4545
}
4646

4747
$constants = get_defined_constants(true);
48-
if (!isset($constants['pcre'])) {
48+
if (!isset($constants['pcre']) || !is_array($constants['pcre'])) {
4949
return 'UNDEFINED_ERROR';
5050
}
5151

0 commit comments

Comments
 (0)