Fixed Symfony 7.4 incompatibility - #623
Conversation
35ee027 to
7ae5197
Compare
|
Hi, thanks for your contribution. |
The tests that are existing should cover it (specifically, I'll give it a look and see if enough cases are covered. Probably not today though, tomorrow at earliest.
I'll see what I can do about it, but I haven't been able to pinpoint why this happens. It doesn't seem to be related to the changes themselves, this will probably also blow up on EDIT: When I checked locally I realized that two versions of PHPUnit were installed: v11 for simple-phpunit, and v12 due to composer direct dependencies: $ symfony composer why phpunit/phpunit
doctrine/deprecations 1.1.5 conflicts phpunit/phpunit (<=7.5 || >=13)
matthiasnoback/symfony-config-test v6.1.0 requires phpunit/phpunit (^10.5 || ^11.0 || ^12.0)
matthiasnoback/symfony-dependency-injection-test 6.2.0 requires phpunit/phpunit (^10.5.11 || ^11.5 || ^12.0)Added PHPStan 11.5 directly as dev dependency to composer.json to ensure correct version is installed, because otherwise they were mixing when initializing: ☝️ you can see above that initialization is done from v11.5, but |
b6884a8 to
eea34b2
Compare
|
Any chances for a release @goetas ? :) |
|
@goetas Do you know when this will be added to a release ? The bundle is broken because of this on Symfony 7.4. Thank you 👍 |
|
I have tagged now a new release(2.7.0) |
Description
This PR changes how
ValidationExtractorinteracts with metadata returned fromMetadataFactory, fixing an issue that shows up after recent Symfony 7.4 release.Before, internal properties were used (which were only public to reduce serialization size). With these changes, Symfony 7.4 metadata - which now has private properties instead of public - should be handled properly.
All methods used in this new version are also present since at least Symfony 5.4, so they should be safe.
See:
Todos