Skip to content

Commit 6f3bffe

Browse files
committed
Annotate nullable closures
1 parent 198d404 commit 6f3bffe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/JsonParser.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public function pointers(array $pointers): self
100100
* Set a JSON pointer
101101
*
102102
* @param string $pointer
103-
* @param Closure|null $callback
103+
* @param ?Closure $callback
104104
* @return self
105105
*/
106106
public function pointer(string $pointer, ?Closure $callback = null): self
@@ -129,7 +129,7 @@ public function lazyPointers(array $pointers): self
129129
* Set a lazy JSON pointer
130130
*
131131
* @param string $pointer
132-
* @param Closure|null $callback
132+
* @param ?Closure $callback
133133
* @return self
134134
*/
135135
public function lazyPointer(string $pointer, ?Closure $callback = null): self
@@ -152,7 +152,7 @@ public function lazy(): self
152152
/**
153153
* Traverse the JSON one key and value at a time
154154
*
155-
* @param Closure|null $callback
155+
* @param ?Closure $callback
156156
* @return void
157157
*/
158158
public function traverse(?Closure $callback = null): void

0 commit comments

Comments
 (0)