Skip to content

Commit

Permalink
Fix type error
Browse files Browse the repository at this point in the history
  • Loading branch information
Seldaek committed Nov 12, 2024
1 parent bfa9e76 commit 2227127
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PcreException.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ private static function pcreLastErrorMessage($code)
}

$constants = get_defined_constants(true);
if (!isset($constants['pcre'])) {
if (!isset($constants['pcre']) || !is_array($constants['pcre'])) {
return 'UNDEFINED_ERROR';
}

Expand Down

0 comments on commit 2227127

Please sign in to comment.