Skip to content

Commit

Permalink
Compatibility with Composer 2.5.6
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed May 24, 2023
1 parent d39adc7 commit f45734b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"require": {
"php": "^7.2 || ^8.0",
"composer-plugin-api": "^2.0",
"phpstan/phpstan": "^1.8.0"
"phpstan/phpstan": "^1.9.0"
},
"require-dev": {
"composer/composer": "^2.0",
Expand Down
6 changes: 6 additions & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,9 @@ parameters:
level: 8
paths:
- src

ignoreErrors:
-
message: '#^Strict comparison using \=\=\= between string and null will always evaluate to false\.$#'
reportUnmatched: false
path: src/Plugin.php
3 changes: 3 additions & 0 deletions src/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,9 @@ public function process(Event $event): void
}

$installPath = $installationManager->getInstallPath($package);
if ($installPath === null) {
continue;
}

$absoluteInstallPath = $fs->isAbsolutePath($installPath)
? $installPath
Expand Down

0 comments on commit f45734b

Please sign in to comment.