Skip to content

Commit dda2ffb

Browse files
committed
Fix "Optional parameters specified before required parameters" again
1 parent 8ce232d commit dda2ffb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/ConstraintInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function addErrors(array $errors);
4040
* @param string $constraint the constraint/rule that is broken, e.g.: 'minLength'
4141
* @param array $more more array elements to add to the error
4242
*/
43-
public function addError(?JsonPointer $path = null, $message, $constraint = '', ?array $more = null);
43+
public function addError(?JsonPointer $path = null, $message = '', $constraint = '', ?array $more = null);
4444

4545
/**
4646
* checks if the validator has not raised errors

0 commit comments

Comments
 (0)