diff --git a/src/DMS/Filter/Filters/RegExp.php b/src/DMS/Filter/Filters/RegExp.php index e177bab..a843bcc 100644 --- a/src/DMS/Filter/Filters/RegExp.php +++ b/src/DMS/Filter/Filters/RegExp.php @@ -41,7 +41,7 @@ public function apply(Rule $rule, $value) */ public function checkUnicodeSupport(): bool { - if (static::$unicodeEnabled === null) { + if (! isset(static::$unicodeEnabled)) { //phpcs:disable SlevomatCodingStandard.ControlStructures.UselessTernaryOperator.UselessTernaryOperator static::$unicodeEnabled = @preg_match('/\pL/u', 'a') ? true : false; }