Skip to content

Commit d026cc0

Browse files
committed
Fix logic oops
1 parent 096d8bf commit d026cc0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/JsonSchema/Constraints/BaseConstraint.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public function addErrors(array $errors)
6969
if ($errors) {
7070
$this->errors = array_merge($this->errors, $errors);
7171
$errorMask = &$this->errorMask;
72-
array_walk($errors, function ($error) use(&$errorMask) {
72+
array_walk($errors, function ($error) use (&$errorMask) {
7373
if (isset($error['context'])) {
7474
$errorMask |= $error['context'];
7575
}
@@ -92,7 +92,7 @@ public function getErrors($errorContext = null)
9292

9393
public function numErrors($errorContext = null)
9494
{
95-
if (!$errorContext === null) {
95+
if ($errorContext === null) {
9696
return count($this->errors);
9797
}
9898

0 commit comments

Comments
 (0)