Skip to content

Commit ed8c271

Browse files
committed
Remove __construct $error
since we work with hooks
1 parent 462bc4f commit ed8c271

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

src/CLI/CLI.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,6 @@ public function __construct(array $args = [])
8686

8787
$this->args = $this->parse((!empty($args) || !isset($_SERVER['argv'])) ? $args : $_SERVER['argv']);
8888

89-
$this->error = function (Exception $error): void {
90-
Console::error($error->getMessage());
91-
};
92-
9389
@\cli_set_process_title($this->command);
9490
}
9591

0 commit comments

Comments
 (0)