Skip to content

Commit bd0bb4b

Browse files
committed
Resolve deprecations: Optional parameter $... declared before required parameter $...
1 parent 02bb5e2 commit bd0bb4b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/JsonSchema/Constraints/Constraint.php

+1-1
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

+1-1
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 = array();
5858
foreach ($patternProperties as $pregex => $schema) {

0 commit comments

Comments
 (0)