Elektrine lite

← Feed

@graste@social.vivaldi.net

2026-07-23 17:25 UTC

"Symfony 8 ignores your #[Groups] attribute" https://ddz.dev/blog/symfony-8-groups-attribute-silently-ignored/ "Groups is not the only class that moved. The same shim treatment applies to the whole old namespace: SerializedName, Ignore, Context, MaxDepth, DiscriminatorMap. Every one of them will compile from the old import and do absolutely nothing. Ignore is the scary one, since a silently dropped #[Ignore] doesn't remove data from your response, it adds data you meant to hide. Empty invoices are embarrassing; leaking a field you explicitly marked as ignored is a different category of morning." #php #symfony

Replies (1)

  • @alister@hachyderm.io 2026-07-23 19:25

    @graste@social.vivaldi.net ... and all you had to do was ignore all the deprecation warnings in the logs, the profiler, and in your IDE. Or you could have run Rector, and see it updating them all (though TBH, I found it easier to search & replace the import statements)

    Open ##5384226