Skip to content

Commit dc9808a

Browse files
committed
update Program class
inject the handler method to the event handler as callable
1 parent 34eefba commit dc9808a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Program.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public static function main(array $args = [])
3030
$rootCommand->addCommand(new MigrateCommand);
3131
$rootCommand->addOption(new CommandOption('--help', '-h'));
3232
$rootCommand->addOption(new CommandOption('--version', '-v'));
33-
$rootCommand->Handler->add(new self, 'execute');
33+
$rootCommand->Handler->add([new self, 'execute']);
3434
$rootCommand->invoke($args);
3535
exit;
3636
}

0 commit comments

Comments
 (0)