Closed baukevdw closed 2 years ago
Hmm... could we just recommend/require Composer >2.3.4 when on 2.3.x? That seems to be the release with the fix.
Unforntunatly it isn't fixed in 2.3.4. That release fixed internal issues with the same exception. The exception still occurs on 2.4RC. It looks like 2.3 is breaking BC for plugins.
tested with composer 2.3.10 on PHP 8.1 and 7.4 and for me it fixes the problem
This indeed looks like a BC in Composer / we weren't using it correctly the whole time.
The getLoop()
method is around since 2.0 (https://github.com/composer/composer/commit/557fb873ee10c413bbd86d8c820c063c2b871a43), but we unfortunately still need the check as we also support v1.
@baukevdw could you maybe add a comment, that this is basically a if v2 else v1
?
@baukevdw apparently I don't understand how to add commits to your PR, so I created a PR in your fork to include into this PR: https://github.com/baukevdw/studio/pull/1
With this we can merge the changes.
@apfelbox You should be able to push directly to my branch since I enabled 'Allow edits by maintainers'. But I've merged your pull-request.
@baukevdw then maybe the Github CLI was just trolling me. 😄
Thank you for your contribution 🙌
I just released 0.16.0
containing this fix.
Thanks!
Fixes #115