File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ public function pointers(array $pointers): self
103103 * @param Closure|null $callback
104104 * @return self
105105 */
106- public function pointer (string $ pointer , Closure $ callback = null ): self
106+ public function pointer (string $ pointer , ? Closure $ callback = null ): self
107107 {
108108 $ this ->config ->pointers ->add (new Pointer ($ pointer , false , $ callback ));
109109
@@ -132,7 +132,7 @@ public function lazyPointers(array $pointers): self
132132 * @param Closure|null $callback
133133 * @return self
134134 */
135- public function lazyPointer (string $ pointer , Closure $ callback = null ): self
135+ public function lazyPointer (string $ pointer , ? Closure $ callback = null ): self
136136 {
137137 $ this ->config ->pointers ->add (new Pointer ($ pointer , true , $ callback ));
138138
@@ -155,7 +155,7 @@ public function lazy(): self
155155 * @param Closure|null $callback
156156 * @return void
157157 */
158- public function traverse (Closure $ callback = null ): void
158+ public function traverse (? Closure $ callback = null ): void
159159 {
160160 foreach ($ this as $ key => $ value ) {
161161 $ callback && $ callback ($ value , $ key , $ this );
You can’t perform that action at this time.
0 commit comments