Closed karmek-k closed 3 years ago
Thank you for the report, I've not tested it in depth under Symfony 5.2 yet. Is there a specific reason you want v0.1.0-alpha instead of v1.1.2 though?
I've just created a brand new Symfony 5.2 project and immediately did "composer require meteo-concept/hcaptcha-bundle symfony/http-client nyholm/psr7". Composer installed meteo-concept/hcaptcha-bundle v1.1.2 without issue. v0.1.0-alpha has weird constraint preventing symfony >= 5.2 which date back from a time I was tracking a breaking change bug.
Maybe there's something weird going on with your composer.json. Can you try setting the version of the hcaptcha-bundle to ^1.1 in the composer.json and run a composer upgrade?
Okay, I executed composer require meteo-concept/hcaptcha-bundle symfony/http-client nyholm/psr7
and now composer installed version ^2.0
. There were no issues while installing.
I have no idea why composer required v0.1.0-alpha
of the bundle, but it seems that executing the above command now installs the correct version.
However, there was a warning saying:
Class MeteoConcept\HCaptchaBundle\Tests\Form\DataTransformer\HCaptchaValueFetcherTest located in C:/Users/Bartosz/source/php/mijikasa/vendor/meteo-concept/hcaptcha-bundle\Tests\Form\DataTransformer\HCatchaValueFetcherTest.php does n
ot comply with psr-4 autoloading standard. Skipping.
I guess it's not that important for the end user. Despite this warning, hCaptcha works properly.
Anyway, thank you for your support and sorry for late response.
Yes, meanwhile, I released version 2.0 to drop support for PHP7.1 and add support for PHP8.0. :-)
Hmm, indeed, it shouldn't be an issue for end-users since it's a unit-testing class. Actually, it's quite silly. The file is named "HCatchaValueFetcherTest.php" instead of "HCaptchaValueFetcherTest.php" and since it's a testing file, it actually doesn't trigger any error from Symfony or during the tests. I'm at the point I need to unit-tests my unit tests...
Thank you!
It seems that the bundle can't be installed with
symfony/http-client
of version>=5.2
.