Skip to content

Commit 70d209b

Browse files
authored
Fix PHP 8 deprecated warnings (#619)
This fixes issue #618
1 parent 058f083 commit 70d209b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/JsonSchema/Constraints/UndefinedConstraint.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public function check(&$value, $schema = null, JsonPointer $path = null, $i = nu
6060
* @param JsonPointer $path
6161
* @param string $i
6262
*/
63-
public function validateTypes(&$value, $schema = null, JsonPointer $path, $i = null)
63+
public function validateTypes(&$value, $schema, JsonPointer $path, $i = null)
6464
{
6565
// check array
6666
if ($this->getTypeCheck()->isArray($value)) {
@@ -111,7 +111,7 @@ public function validateTypes(&$value, $schema = null, JsonPointer $path, $i = n
111111
* @param JsonPointer $path
112112
* @param string $i
113113
*/
114-
protected function validateCommonProperties(&$value, $schema = null, JsonPointer $path, $i = '')
114+
protected function validateCommonProperties(&$value, $schema, JsonPointer $path, $i = '')
115115
{
116116
// if it extends another schema, it must pass that schema as well
117117
if (isset($schema->extends)) {

0 commit comments

Comments
 (0)