Skip to content

Commit f45734b

Browse files
committed
Compatibility with Composer 2.5.6
1 parent d39adc7 commit f45734b

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"require": {
99
"php": "^7.2 || ^8.0",
1010
"composer-plugin-api": "^2.0",
11-
"phpstan/phpstan": "^1.8.0"
11+
"phpstan/phpstan": "^1.9.0"
1212
},
1313
"require-dev": {
1414
"composer/composer": "^2.0",

phpstan.neon

+6
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,9 @@ parameters:
55
level: 8
66
paths:
77
- src
8+
9+
ignoreErrors:
10+
-
11+
message: '#^Strict comparison using \=\=\= between string and null will always evaluate to false\.$#'
12+
reportUnmatched: false
13+
path: src/Plugin.php

src/Plugin.php

+3
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,9 @@ public function process(Event $event): void
135135
}
136136

137137
$installPath = $installationManager->getInstallPath($package);
138+
if ($installPath === null) {
139+
continue;
140+
}
138141

139142
$absoluteInstallPath = $fs->isAbsolutePath($installPath)
140143
? $installPath

0 commit comments

Comments
 (0)