getsentry / sentry-symfony

The official Symfony SDK for Sentry (sentry.io)
https://sentry.io
MIT License
693 stars 169 forks source link

It doesn't work with composer 2 #383

Closed cataragak90 closed 3 years ago

cataragak90 commented 3 years ago

Is it supposed to work with composer 2?

alexander-schranz commented 3 years ago

@ondrejmirtes @Seldaek the issue is gone with the dev-master phpstan release 🎉

ondrejmirtes commented 3 years ago

Awesome, I'm happy to release PHPStan once Composer is released and setup-php GitHub action picks it up when using composer:v2 :)

Seldaek commented 3 years ago

2.0.9 is out

Jean85 commented 3 years ago

Great job everyone!

ondrejmirtes commented 3 years ago

I just released PHPStan 0.12.70 that contains the fix :) https://github.com/phpstan/phpstan/releases/tag/0.12.70

VincentLanglet commented 3 years ago

@ondrejmirtes it does not work anymore for me.

e238668648be5ff3225875c39346bd9a16f5438b was working but 0.12.70 does not.

alexander-schranz commented 3 years ago

For me it still works.

I did:

composer self-update --2 # did get the new 2.0.9
# removed the old autoloader files
rm -rf vendor
rm -rf bin/.phpunit

composer update phpstan/phpstan # to get phpstan 0.12.70 and in this case also the new autoloader

bin/phpunit install # generate the phpunit autoloader
vendor/bin/phpstan analyse # no errors did appear

@VincentLanglet did you in your case reinstall the dependencies so both autoloaders are also reinstalled?

VincentLanglet commented 3 years ago

I think I had some weird issue with my CI, it's fixed now :)

ondrejmirtes commented 3 years ago

And now the fun starts... https://github.com/phpstan/phpstan/issues/4453 I hope it can be solved by the steps I've written there...