Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix composer array issue with plain array as returned by composer getConfig getRepositories #35

Merged
merged 1 commit into from Nov 30, 2020

Conversation

das-peter
Copy link
Contributor

Should fix
PHP Fatal error: Uncaught Error: Cannot use object of type Composer\Repository\PackageRepository as array in /var/www/html/example.com/drupal/vendor/vardot/varbase-updater/src/Commands/RefactorComposerCommand.php:616

$projectPackage->getRepositories(); returns an array of Composer\Repository\PackageRepository instances - but we want a plain array as returned by $composer->getConfig()->getRepositories();

$projectPackage->getRepositories(); returns an array of Composer\Repository\PackageRepository instances - but we want a plain array as returned $composer->getConfig()->getRepositories();
@Natshah Natshah merged commit 7526b42 into Vardot:1.x Nov 30, 2020
@Natshah Natshah changed the title Fix for https://www.drupal.org/project/varbase/issues/3109712 Fix composer array issue with plain array as returned by composer getConfig getRepositories Nov 30, 2020
Natshah pushed a commit that referenced this pull request Nov 30, 2020
@Natshah
Copy link
Member

Natshah commented Nov 30, 2020

Thank you Peter
Committed and released

vardot/varbase-updater 1.2.10 - Composer ~1.0
https://github.com/Vardot/varbase-updater/releases/tag/1.2.10

vardot/varbase-updater 2.0.10 - Composer ~2.0
https://github.com/Vardot/varbase-updater/releases/tag/2.0.10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants