sonata-project / SonataAdminBundle

The missing Symfony Admin Generator
https://docs.sonata-project.org/projects/SonataAdminBundle
MIT License
2.11k stars 1.26k forks source link

issue with 4.6.0 #7668

Closed dmaicher closed 2 years ago

dmaicher commented 2 years ago

Just upgraded to 4.6.0 on my project and noticed test fails

00:07:12.255 Failed asserting that the HTTP status code is 200! Actual status code is 500
00:07:12.255 Unexpected operator of value "=". Did you try to use "===" or "!==" for strict comparison? Use "is same as(value)" instead.
00:07:12.255 Twig\Error\SyntaxError: Unexpected operator of value "=". Did you try to use "===" or "!==" for strict comparison? Use "is same as(value)" instead. in /var/www/.../symfony/vendor/sonata-project/admin-bundle/src/Resources/views/Form/Type/sonata_type_model_autocomplete.html.twig:77

I'm using twig v3.3.4

dmaicher commented 2 years ago

Seems to be caused by https://github.com/sonata-project/SonataAdminBundle/commit/64f7f80dfece07f5fa15c7fa37a34d95225c60fc

cc @Gasjki

VincentLanglet commented 2 years ago

Hi @dmaicher, does https://github.com/sonata-project/SonataAdminBundle/pull/7669 is enough ?