Skip to content

Commit

Permalink
Merge pull request #109 from dontub/patch-1
Browse files Browse the repository at this point in the history
JsonPointer: Fix phpdoc type hint for $default
  • Loading branch information
sorinsarca authored Oct 21, 2024
2 parents 7edd781 + d617acd commit 5346c2e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/JsonPointer.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public function __toString(): string
/**
* @param $data
* @param array|null $path
* @param null $default
* @param mixed $default
* @return mixed
*/
public function data($data, ?array $path = null, $default = null)
Expand Down Expand Up @@ -252,7 +252,7 @@ public static function parse(string $pointer, bool $decode = true): ?self
* @param $data
* @param array|null $path
* @param bool $fragment
* @param null $default
* @param mixed $default
* @return mixed
*/
public static function getData($data, ?array $path = null, bool $fragment = false, $default = null)
Expand Down Expand Up @@ -407,4 +407,4 @@ public static function createRelative(int $level, array $path = [], int $shift =
{
return new self($path, $level, $shift, $fragment);
}
}
}

0 comments on commit 5346c2e

Please sign in to comment.