Skip to content

Commit b59e334

Browse files
committed
Fix "Optional parameters specified before required parameters"
1 parent 2b24b55 commit b59e334

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ abstract class Constraint extends BaseConstraint implements ConstraintInterface
3939
*
4040
* @return JsonPointer;
4141
*/
42-
protected function incrementPath(?JsonPointer $path = null, $i)
42+
protected function incrementPath(?JsonPointer $path = null, $i = null)
4343
{
4444
$path = $path ?: new JsonPointer('');
4545

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public function check(
5757
$this->validateElement($element, $matches, $schema, $path, $properties, $additionalProp);
5858
}
5959

60-
public function validatePatternProperties($element, ?JsonPointer $path = null, $patternProperties)
60+
public function validatePatternProperties($element, ?JsonPointer $path = null, $patternProperties = [])
6161
{
6262
$try = ['/', '#', '+', '~', '%'];
6363
$matches = [];

0 commit comments

Comments
 (0)