Skip to content

Commit d617acd

Browse files
authored
JsonPointer: Fix phpdoc type hint for $default
1 parent c48df6d commit d617acd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/JsonPointer.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public function __toString(): string
116116
/**
117117
* @param $data
118118
* @param array|null $path
119-
* @param null $default
119+
* @param mixed $default
120120
* @return mixed
121121
*/
122122
public function data($data, ?array $path = null, $default = null)
@@ -252,7 +252,7 @@ public static function parse(string $pointer, bool $decode = true): ?self
252252
* @param $data
253253
* @param array|null $path
254254
* @param bool $fragment
255-
* @param null $default
255+
* @param mixed $default
256256
* @return mixed
257257
*/
258258
public static function getData($data, ?array $path = null, bool $fragment = false, $default = null)
@@ -407,4 +407,4 @@ public static function createRelative(int $level, array $path = [], int $shift =
407407
{
408408
return new self($path, $level, $shift, $fragment);
409409
}
410-
}
410+
}

0 commit comments

Comments
 (0)