Skip to content

Commit

Permalink
Fixed unset typed parameter check
Browse files Browse the repository at this point in the history
  • Loading branch information
kdadler authored and rdohms committed Oct 11, 2021
1 parent 771b1ca commit cf42bdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DMS/Filter/Filters/RegExp.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit cf42bdd

Please sign in to comment.