Skip to content

Commit

Permalink
Fix PhpStan
Browse files Browse the repository at this point in the history
  • Loading branch information
janbarasek committed Jan 29, 2021
1 parent 38ef9f8 commit 34e3425
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/InteractiveComposer/Task/ComposerJsonTask.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ private function getPackageExtensions(): array
$composer = is_file($path) ? Json::decode(FileSystem::read($path), Json::FORCE_ARRAY) : [];
if (isset($composer['require'])) {
foreach (array_keys($composer['require']) as $dependency) {
$dependency = (string) $dependency;
if (isset($return[$dependency]) === false && Strings::startsWith($dependency, 'ext-')) {
$return[$dependency] = $dependency;
}
Expand Down

0 comments on commit 34e3425

Please sign in to comment.