File tree 2 files changed +5
-3
lines changed 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,6 @@ final class GeneratedConfig
19
19
20
20
public const NOT_INSTALLED = [];
21
21
22
- /** @var string|null */
23
22
public const PHPSTAN_VERSION_CONSTRAINT = null ;
24
23
25
24
private function __construct ()
Original file line number Diff line number Diff line change 14
14
use function array_key_exists ;
15
15
use function array_keys ;
16
16
use function class_exists ;
17
+ use function count ;
17
18
use function dirname ;
18
19
use function file_exists ;
19
20
use function file_put_contents ;
@@ -162,9 +163,11 @@ public function process(Event $event): void
162
163
$ installedPackages [$ package ->getName ()] = true ;
163
164
164
165
$ 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 ;
167
168
}
169
+
170
+ $ phpstanVersionConstraints [] = $ packageRequires ['phpstan/phpstan ' ]->getConstraint ();
168
171
}
169
172
170
173
$ phpstanVersionConstraint = null ;
You can’t perform that action at this time.
0 commit comments