Skip to content

Commit 8ce232d

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

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function __construct(?Factory $factory = null)
4343
$this->factory = $factory ?: new Factory();
4444
}
4545

46-
public function addError(?JsonPointer $path = null, $message, $constraint = '', ?array $more = null)
46+
public function addError(?JsonPointer $path = null, $message = '', $constraint = '', ?array $more = null)
4747
{
4848
$error = [
4949
'property' => $this->convertJsonPointerIntoPropertyPath($path ?: new JsonPointer('')),

0 commit comments

Comments
 (0)