Skip to content

Commit 2492e3c

Browse files
Fixed phpstan issues in Installer
1 parent c59deff commit 2492e3c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Runner/Installer.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class Installer extends RepositoryAware
5959
/**
6060
* Hooks that should be handled.
6161
*
62-
* @var array
62+
* @var array<int, string>
6363
*/
6464
protected $hooksToHandle;
6565

@@ -142,6 +142,7 @@ public function setHook(string $hook): Installer
142142
return $this;
143143
}
144144

145+
/** @var array<int,string>|false $hooks */
145146
$hooks = explode(',', $hook);
146147
if ($hooks === false) {
147148
throw new Exception\InvalidHookName('Invalid hook name \'' . $hook . '\'');

0 commit comments

Comments
 (0)