Skip to content

Commit 1215c51

Browse files
committed
Use ?object type hint
1 parent 88bee04 commit 1215c51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/php/lang/reflection/Method.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class Method extends Routine {
1818
* @return Closure
1919
* @throws lang.IllegalArgumentException for incorrect or missing instances
2020
*/
21-
public function closure($instance= null) {
21+
public function closure(?object $instance= null) {
2222
try {
2323
$closure= $this->reflect->getClosure($instance);
2424
} catch (\Throwable $e) {

0 commit comments

Comments
 (0)