Skip to content

Commit

Permalink
Fix "Optional parameters specified before required parameters"
Browse files Browse the repository at this point in the history
  • Loading branch information
antonmedv committed Nov 27, 2024
1 parent 2b24b55 commit b59e334
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ abstract class Constraint extends BaseConstraint implements ConstraintInterface
*
* @return JsonPointer;
*/
protected function incrementPath(?JsonPointer $path = null, $i)
protected function incrementPath(?JsonPointer $path = null, $i = null)
{
$path = $path ?: new JsonPointer('');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function check(
$this->validateElement($element, $matches, $schema, $path, $properties, $additionalProp);
}

public function validatePatternProperties($element, ?JsonPointer $path = null, $patternProperties)
public function validatePatternProperties($element, ?JsonPointer $path = null, $patternProperties = [])
{
$try = ['/', '#', '+', '~', '%'];
$matches = [];
Expand Down

0 comments on commit b59e334

Please # to comment.