Skip to content

Commit

Permalink
Merge pull request #21 from susannemoog/patch-1
Browse files Browse the repository at this point in the history
[TASK] Cast object to array to allow key() usage
  • Loading branch information
o-ba authored Jan 24, 2022
2 parents ab2c6ed + 666688e commit 74ed6d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Command/Component/SimpleComponentCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ protected function resolvePackage(string $extensionKey): ?PackageInterface

protected function getPsr4Prefix(PackageInterface $package): string
{
return (string)key(($package->getValueFromComposerManifest('autoload')->{'psr-4'} ?? []));
return (string)key((array)($package->getValueFromComposerManifest('autoload')->{'psr-4'} ?? []));
}

protected function getExtensionClassesPath(PackageInterface $package, string $psr4Prefix): string
Expand Down

0 comments on commit 74ed6d6

Please sign in to comment.