@@ -61,7 +61,7 @@ |
||
61 | 61 | * validate a json structure with a schema |
62 | 62 | * |
63 | 63 | * @param object $json the json |
64 | - * @param object $schema the schema |
|
64 | + * @param string $schema the schema |
|
65 | 65 | * |
66 | 66 | * @return ValidationExceptionError[] errors |
67 | 67 | */ |
@@ -91,8 +91,8 @@ discard block |
||
91 | 91 | ->method('getErrors') |
92 | 92 | ->willReturn($errors); |
93 | 93 | $validator->expects($this->once()) |
94 | - ->method('reset') |
|
95 | - ->willReturn(true); |
|
94 | + ->method('reset') |
|
95 | + ->willReturn(true); |
|
96 | 96 | $validator->expects($this->once()) |
97 | 97 | ->method('validate') |
98 | 98 | ->with(json_decode($json), $schema); |
@@ -120,8 +120,8 @@ discard block |
||
120 | 120 | ->with(json_decode($json), $schema) |
121 | 121 | ->willReturn(true); |
122 | 122 | $validator->expects($this->once()) |
123 | - ->method('isValid') |
|
124 | - ->willReturn(true); |
|
123 | + ->method('isValid') |
|
124 | + ->willReturn(true); |
|
125 | 125 | $validator->expects($this->never()) |
126 | 126 | ->method('getErrors'); |
127 | 127 |
@@ -37,9 +37,7 @@ |
||
37 | 37 | * checks the input |
38 | 38 | * |
39 | 39 | * @param mixed $element element |
40 | - * @param null $schema schema |
|
41 | 40 | * @param JsonPointer $path path |
42 | - * @param null $i iterator value |
|
43 | 41 | * |
44 | 42 | * @return void |
45 | 43 | */ |