Skip to content

Commit 6095d6f

Browse files
committed
fix: remove default value to resolve deprecations notice
1 parent b817e85 commit 6095d6f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/JsonSchema/Constraints/Constraint.php

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

src/JsonSchema/Constraints/ObjectConstraint.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function check(&$element, $schema = null, ?JsonPointer $path = null, $pro
5252
$this->validateElement($element, $matches, $schema, $path, $properties, $additionalProp);
5353
}
5454

55-
public function validatePatternProperties($element, ?JsonPointer $path = null, $patternProperties)
55+
public function validatePatternProperties($element, ?JsonPointer $path, $patternProperties)
5656
{
5757
$matches = [];
5858
foreach ($patternProperties as $pregex => $schema) {

0 commit comments

Comments
 (0)