Skip to content

Commit efc5d37

Browse files
committed
fix: wrong boolean condition
1 parent fc41292 commit efc5d37

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Tool/CommandLineTool.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ protected static function getName(): string
4848
*/
4949
protected static function getProcess(string $command, ?string $cwd = null, ?float $timeout = 60): Process
5050
{
51-
if (static::isInstalledGlobally()) {
51+
if (!static::isInstalledGlobally()) {
5252
throw new CommandLineToolNotAvailableException(static::getName());
5353
}
5454

@@ -60,7 +60,7 @@ protected static function getProcess(string $command, ?string $cwd = null, ?floa
6060
*/
6161
protected static function runCommand(string $command, ?string $cwd = null): Process
6262
{
63-
if (static::isInstalledGlobally()) {
63+
if (!static::isInstalledGlobally()) {
6464
throw new CommandLineToolNotAvailableException(static::getName());
6565
}
6666

0 commit comments

Comments
 (0)