This PR fixes a deprecation warning that I found using this library with Symfony 2.8.
The methods setAllowedTypes() and setAllowedValues() will no longer accept an array as their first parameter starting with Symfony 3.0, hence the deprecation notice starting from Symfony 2.6.
This PR fixes a deprecation warning that I found using this library with Symfony 2.8. The methods setAllowedTypes() and setAllowedValues() will no longer accept an array as their first parameter starting with Symfony 3.0, hence the deprecation notice starting from Symfony 2.6.
I modified the code to fix this.