Skip to content

Commit

Permalink
Remove unnecessary boolean comparison
Browse files Browse the repository at this point in the history
Signed-off-by: George Steel <george@net-glue.co.uk>
  • Loading branch information
gsteel committed Jun 24, 2024
1 parent 2cef253 commit 49e56b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Callback.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public function isValid(mixed $value, ?array $context = null): bool
*/
$this->error(self::INVALID_CALLBACK);

if ($this->throwExceptions === true) {
if ($this->throwExceptions) {
throw $exception;
}

Expand Down

0 comments on commit 49e56b8

Please sign in to comment.