We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 096d8bf commit d026cc0Copy full SHA for d026cc0
src/JsonSchema/Constraints/BaseConstraint.php
@@ -69,7 +69,7 @@ public function addErrors(array $errors)
69
if ($errors) {
70
$this->errors = array_merge($this->errors, $errors);
71
$errorMask = &$this->errorMask;
72
- array_walk($errors, function ($error) use(&$errorMask) {
+ array_walk($errors, function ($error) use (&$errorMask) {
73
if (isset($error['context'])) {
74
$errorMask |= $error['context'];
75
}
@@ -92,7 +92,7 @@ public function getErrors($errorContext = null)
92
93
public function numErrors($errorContext = null)
94
{
95
- if (!$errorContext === null) {
+ if ($errorContext === null) {
96
return count($this->errors);
97
98
0 commit comments