giftcards / FixedWidth

Library for working with fixed width files as well as their associated specs
MIT License
10 stars 4 forks source link

Fixes a Symfony 2.6+ deprecation warning #14

Closed azambon closed 6 years ago

azambon commented 8 years ago

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.