From 49e56b8eb65b86039c95d46fd94256dfc8192984 Mon Sep 17 00:00:00 2001 From: George Steel Date: Mon, 24 Jun 2024 14:34:47 +0100 Subject: [PATCH] Remove unnecessary boolean comparison Signed-off-by: George Steel --- src/Callback.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Callback.php b/src/Callback.php index 387c2a31..1ae061af 100644 --- a/src/Callback.php +++ b/src/Callback.php @@ -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; }