Skip to content

Commit

Permalink
PHP 8.1: Don't pass null to addslashes function (#141)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrispenny authored Jul 6, 2022
1 parent c5f807d commit c5566d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Criterion.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public function toScript()
"this.findHolder('%s').evaluate%s('%s')",
$this->master,
$this->operator,
addslashes($this->value)
addslashes($this->value ?? '')
);
}
}

0 comments on commit c5566d7

Please sign in to comment.