@@ -39,7 +39,7 @@ abstract class Constraint extends BaseConstraint implements ConstraintInterface
39
39
*
40
40
* @return JsonPointer;
41
41
*/
42
- protected function incrementPath (JsonPointer $ path = null , $ i )
42
+ protected function incrementPath (? JsonPointer $ path = null , $ i )
43
43
{
44
44
$ path = $ path ?: new JsonPointer ('' );
45
45
@@ -65,7 +65,7 @@ protected function incrementPath(JsonPointer $path = null, $i)
65
65
* @param JsonPointer|null $path
66
66
* @param mixed $i
67
67
*/
68
- protected function checkArray (&$ value , $ schema = null , JsonPointer $ path = null , $ i = null )
68
+ protected function checkArray (&$ value , $ schema = null , ? JsonPointer $ path = null , $ i = null )
69
69
{
70
70
$ validator = $ this ->factory ->createInstanceFor ('collection ' );
71
71
$ validator ->check ($ value , $ schema , $ path , $ i );
@@ -83,7 +83,7 @@ protected function checkArray(&$value, $schema = null, JsonPointer $path = null,
83
83
* @param mixed $additionalProperties
84
84
* @param mixed $patternProperties
85
85
*/
86
- protected function checkObject (&$ value , $ schema = null , JsonPointer $ path = null , $ properties = null ,
86
+ protected function checkObject (&$ value , $ schema = null , ? JsonPointer $ path = null , $ properties = null ,
87
87
$ additionalProperties = null , $ patternProperties = null , $ appliedDefaults = array ())
88
88
{
89
89
$ validator = $ this ->factory ->createInstanceFor ('object ' );
@@ -100,7 +100,7 @@ protected function checkObject(&$value, $schema = null, JsonPointer $path = null
100
100
* @param JsonPointer|null $path
101
101
* @param mixed $i
102
102
*/
103
- protected function checkType (&$ value , $ schema = null , JsonPointer $ path = null , $ i = null )
103
+ protected function checkType (&$ value , $ schema = null , ? JsonPointer $ path = null , $ i = null )
104
104
{
105
105
$ validator = $ this ->factory ->createInstanceFor ('type ' );
106
106
$ validator ->check ($ value , $ schema , $ path , $ i );
@@ -116,7 +116,7 @@ protected function checkType(&$value, $schema = null, JsonPointer $path = null,
116
116
* @param JsonPointer|null $path
117
117
* @param mixed $i
118
118
*/
119
- protected function checkUndefined (&$ value , $ schema = null , JsonPointer $ path = null , $ i = null , $ fromDefault = false )
119
+ protected function checkUndefined (&$ value , $ schema = null , ? JsonPointer $ path = null , $ i = null , $ fromDefault = false )
120
120
{
121
121
$ validator = $ this ->factory ->createInstanceFor ('undefined ' );
122
122
@@ -133,7 +133,7 @@ protected function checkUndefined(&$value, $schema = null, JsonPointer $path = n
133
133
* @param JsonPointer|null $path
134
134
* @param mixed $i
135
135
*/
136
- protected function checkString ($ value , $ schema = null , JsonPointer $ path = null , $ i = null )
136
+ protected function checkString ($ value , $ schema = null , ? JsonPointer $ path = null , $ i = null )
137
137
{
138
138
$ validator = $ this ->factory ->createInstanceFor ('string ' );
139
139
$ validator ->check ($ value , $ schema , $ path , $ i );
@@ -149,7 +149,7 @@ protected function checkString($value, $schema = null, JsonPointer $path = null,
149
149
* @param JsonPointer $path
150
150
* @param mixed $i
151
151
*/
152
- protected function checkNumber ($ value , $ schema = null , JsonPointer $ path = null , $ i = null )
152
+ protected function checkNumber ($ value , $ schema = null , ? JsonPointer $ path = null , $ i = null )
153
153
{
154
154
$ validator = $ this ->factory ->createInstanceFor ('number ' );
155
155
$ validator ->check ($ value , $ schema , $ path , $ i );
@@ -165,7 +165,7 @@ protected function checkNumber($value, $schema = null, JsonPointer $path = null,
165
165
* @param JsonPointer|null $path
166
166
* @param mixed $i
167
167
*/
168
- protected function checkEnum ($ value , $ schema = null , JsonPointer $ path = null , $ i = null )
168
+ protected function checkEnum ($ value , $ schema = null , ? JsonPointer $ path = null , $ i = null )
169
169
{
170
170
$ validator = $ this ->factory ->createInstanceFor ('enum ' );
171
171
$ validator ->check ($ value , $ schema , $ path , $ i );
@@ -181,7 +181,7 @@ protected function checkEnum($value, $schema = null, JsonPointer $path = null, $
181
181
* @param JsonPointer|null $path
182
182
* @param mixed $i
183
183
*/
184
- protected function checkFormat ($ value , $ schema = null , JsonPointer $ path = null , $ i = null )
184
+ protected function checkFormat ($ value , $ schema = null , ? JsonPointer $ path = null , $ i = null )
185
185
{
186
186
$ validator = $ this ->factory ->createInstanceFor ('format ' );
187
187
$ validator ->check ($ value , $ schema , $ path , $ i );
0 commit comments