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

Flex version 1.13.1 is broken #770

Closed
abzolv opened this issue May 18, 2021 · 2 comments · Fixed by #772
Closed

Flex version 1.13.1 is broken #770

abzolv opened this issue May 18, 2021 · 2 comments · Fixed by #772

Comments

@abzolv
Copy link

abzolv commented May 18, 2021

After upgrading from 1.13.0 to 1.13.1, composer update produces an error:

PHP Fatal error: Uncaught TypeError: Argument 1 passed to Symfony\Flex\PackageJsonSynchronizer::addPackageJsonLink() must be of the type string, array given, called in /project-folder/vendor/symfony/flex/src/PackageJsonSynchronizer.php on line 46

My project composer.json has:

"extra": { "symfony": { "allow-contrib": false, "require": "4.4.*" } },

The same error happens in two separate projects, which both worked with 1.13.0.

nicolas-grekas referenced this issue May 18, 2021
This PR was merged into the 1.12-dev branch.

Discussion
----------

Fix looking for keywords

Fix #768

Commits
-------

9f47b85 Fix looking for keywords
@nicolas-grekas
Copy link
Member

Maybe you have a global installation of flex? Please let me know how that's possible. By looking at the code, I can't figure out.

@abzolv
Copy link
Author

abzolv commented May 18, 2021

A second run of composer update works as expected (doesn't crash).

@abzolv abzolv closed this as completed May 18, 2021
nicolas-grekas added a commit that referenced this issue May 18, 2021
…s-grekas)

This PR was merged into the 1.13-dev branch.

Discussion
----------

Support for smooth upgrades from older flex versions

Fix #771
Fix #770

Commits
-------

f706762 Support for smooth upgrades from older flex versions
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 a pull request may close this issue.

2 participants