Skip to content

Commit 9a34c57

Browse files
matbechAyesh
authored andcommitted
Fix PHP 8 deprecated warnings (#619)
This fixes issue #618
1 parent 6efe6ec commit 9a34c57

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
@@ -59,7 +59,7 @@ public function check(&$value, $schema = null, JsonPointer $path = null, $i = nu
5959
* @param JsonPointer $path
6060
* @param string $i
6161
*/
62-
public function validateTypes(&$value, $schema = null, JsonPointer $path, $i = null)
62+
public function validateTypes(&$value, $schema, JsonPointer $path, $i = null)
6363
{
6464
// check array
6565
if ($this->getTypeCheck()->isArray($value)) {
@@ -105,7 +105,7 @@ public function validateTypes(&$value, $schema = null, JsonPointer $path, $i = n
105105
* @param JsonPointer $path
106106
* @param string $i
107107
*/
108-
protected function validateCommonProperties(&$value, $schema = null, JsonPointer $path, $i = '')
108+
protected function validateCommonProperties(&$value, $schema, JsonPointer $path, $i = '')
109109
{
110110
// if it extends another schema, it must pass that schema as well
111111
if (isset($schema->extends)) {

0 commit comments

Comments
 (0)