**Symfony version(s) affected**: symfony/form >=5.2.4 **Description** Since symfony/form 5.2.4 our custom error message provided with 'invalid_message' has no more effect. **How to reproduce** Bug reproducer: https://github.com/jochen-jung/invalid_message_bug Call endpoint https://127.0.0.1:8000/bug after checking out. What I would expect in the second dump is: "platforms: ERROR: Invalid Platform selected." What you see instead is: "platforms: ERROR: The value array is not valid." **Possible Solution** It works fine, when downgrading to "symfony/form": "^5.2.3". However I would expect it in current versions work as well.