We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
?object
1 parent 88bee04 commit 1215c51Copy full SHA for 1215c51
src/main/php/lang/reflection/Method.class.php
@@ -18,7 +18,7 @@ class Method extends Routine {
18
* @return Closure
19
* @throws lang.IllegalArgumentException for incorrect or missing instances
20
*/
21
- public function closure($instance= null) {
+ public function closure(?object $instance= null) {
22
try {
23
$closure= $this->reflect->getClosure($instance);
24
} catch (\Throwable $e) {
0 commit comments