mirror of
https://github.com/deployphp/deployer.git
synced 2025-04-22 14:21:56 +02:00
Fix "Optional parameters specified before required parameters"
This commit is contained in:
parent
2b24b55683
commit
b59e334ea9
@ -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('');
|
||||
|
||||
|
@ -57,7 +57,7 @@ class ObjectConstraint extends Constraint
|
||||
$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 = [];
|
||||
|
Loading…
x
Reference in New Issue
Block a user