From d5ce41a33dcf17960bc0b251b69d7afe631766bc Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Sat, 1 Apr 2023 16:58:29 +0200 Subject: [PATCH] removed unused variable in UndefinedConstraint --- src/JsonSchema/Constraints/UndefinedConstraint.php | 1 - 1 file changed, 1 deletion(-) diff --git a/src/JsonSchema/Constraints/UndefinedConstraint.php b/src/JsonSchema/Constraints/UndefinedConstraint.php index cc41058a..973205bc 100644 --- a/src/JsonSchema/Constraints/UndefinedConstraint.php +++ b/src/JsonSchema/Constraints/UndefinedConstraint.php @@ -329,7 +329,6 @@ protected function validateOfProperties(&$value, $schema, JsonPointer $path, $i if (isset($schema->anyOf)) { $isValid = false; $startErrors = $this->getErrors(); - $caughtException = null; foreach ($schema->anyOf as $anyOf) { $initErrors = $this->getErrors(); try {