netgen / TagsBundle

Netgen Tags Bundle is an eZ Platform bundle for taxonomy management and easier classification of content, providing more functionality for tagging content than ezkeyword field type included in eZ Platform kernel.
https://netgen.io
GNU General Public License v2.0
48 stars 44 forks source link

Fix error when creating a tag on Symfony 5.4 #147

Closed bcafuk closed 2 years ago

bcafuk commented 2 years ago

As reported in issue #146, trying to create a new tag when using Symfony 5.4 throws an error. In Symfony 5.4, a change was introduced that limited the constraints option for a form field to be either a constraint object, or an array of constraint objects. Therefore, using null now throws an error.

This pull request fixes that error by replacing the null with an empty array, [].

emodric commented 2 years ago

Thanks @bcafuk !