Skip to content

Commit 792118f

Browse files
committed
Fix CS
1 parent 487e1ad commit 792118f

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/GeneratedConfig.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ final class GeneratedConfig
1919

2020
public const NOT_INSTALLED = [];
2121

22-
/** @var string|null */
2322
public const PHPSTAN_VERSION_CONSTRAINT = null;
2423

2524
private function __construct()

src/Plugin.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
use function array_key_exists;
1515
use function array_keys;
1616
use function class_exists;
17+
use function count;
1718
use function dirname;
1819
use function file_exists;
1920
use function file_put_contents;
@@ -162,9 +163,11 @@ public function process(Event $event): void
162163
$installedPackages[$package->getName()] = true;
163164

164165
$packageRequires = $package->getRequires();
165-
if (array_key_exists('phpstan/phpstan', $packageRequires)) {
166-
$phpstanVersionConstraints[] = $packageRequires['phpstan/phpstan']->getConstraint();
166+
if (!array_key_exists('phpstan/phpstan', $packageRequires)) {
167+
continue;
167168
}
169+
170+
$phpstanVersionConstraints[] = $packageRequires['phpstan/phpstan']->getConstraint();
168171
}
169172

170173
$phpstanVersionConstraint = null;

0 commit comments

Comments
 (0)