Skip to content

Commit a34ff52

Browse files
Trim exploded input hooks
1 parent 98ff4fc commit a34ff52

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Runner/Installer.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ public function setHook(string $hook): Installer
143143
if ($hooks === false) {
144144
throw new Exception\InvalidHookName('Invalid hook name \'' . $hook . '\'');
145145
}
146+
$hooks = array_map('trim', $hooks);
146147
$hooksValidationCallback = static function (string $hook): bool {
147148
return !HookUtil::isInstallable($hook);
148149
};

0 commit comments

Comments
 (0)