Skip to content

Commit

Permalink
Use ?object type hint
Browse files Browse the repository at this point in the history
  • Loading branch information
thekid committed Mar 23, 2024
1 parent 88bee04 commit 1215c51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/php/lang/reflection/Method.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 1215c51

Please sign in to comment.