Skip to content

Commit 0943a24

Browse files
committed
Update Undefined.php
Fix the php < 5.4 compatability
1 parent 57f366b commit 0943a24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/JsonSchema/Constraints/Undefined.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ protected function validateOfProperties($value, $schema, $path, $i = "")
234234
$matchedSchemas = 0;
235235
$startErrors = $this->getErrors();
236236
foreach ($schema->oneOf as $oneOf) {
237-
$this->errors = [];
237+
$this->errors = array();
238238
$this->checkUndefined($value, $oneOf, $path, $i);
239239
if (count($this->getErrors()) == 0) {
240240
$matchedSchemas++;

0 commit comments

Comments
 (0)