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.
1 parent 0f937ee commit 016e911Copy full SHA for 016e911
src/Runner/Hook.php
@@ -125,15 +125,17 @@ public function run(): void
125
126
$this->beforeHook();
127
128
- $actions = $this->getActionsToExecute($hookConfigs);
129
- // are any actions configured
130
- if (count($actions) === 0) {
131
- $this->io->write(' - no actions to execute', true);
132
- } else {
133
- $this->executeActions($actions);
+ try {
+ $actions = $this->getActionsToExecute($hookConfigs);
+ // are any actions configured
+ if (count($actions) === 0) {
+ $this->io->write(' - no actions to execute', true);
+ } else {
134
+ $this->executeActions($actions);
135
+ }
136
+ } finally {
137
+ $this->afterHook();
138
}
-
- $this->afterHook();
139
140
141
/**
0 commit comments