From 1215c518f51df6169a03be28e0ac21d082c93e9e Mon Sep 17 00:00:00 2001 From: Timm Friebe Date: Sat, 23 Mar 2024 19:10:44 +0100 Subject: [PATCH] Use `?object` type hint --- src/main/php/lang/reflection/Method.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/php/lang/reflection/Method.class.php b/src/main/php/lang/reflection/Method.class.php index c95dad4..44b92ce 100755 --- a/src/main/php/lang/reflection/Method.class.php +++ b/src/main/php/lang/reflection/Method.class.php @@ -18,7 +18,7 @@ class Method extends Routine { * @return Closure * @throws lang.IllegalArgumentException for incorrect or missing instances */ - public function closure($instance= null) { + public function closure(?object $instance= null) { try { $closure= $this->reflect->getClosure($instance); } catch (\Throwable $e) {