Skip to content

Commit 8ad3227

Browse files
Improve type support
Use the instance to call the method instead of the class string. Since the instance is validated with instance of this can not fail.
1 parent 9a05b87 commit 8ad3227

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Runner/Action/PHP.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public function execute(Config $config, IO $io, Repository $repository, Config\A
9292

9393
// make sure to collect all event handlers before executing the action
9494
if ($exe instanceof EventSubscriber) {
95-
$this->dispatcher->subscribeHandlers($class::getEventHandlers($action));
95+
$this->dispatcher->subscribeHandlers($exe::getEventHandlers($action));
9696
}
9797

9898
// no restrictions run it!

0 commit comments

Comments
 (0)