Fixed use of equals (closes #2109)

closes #2109

More information in the Update file: https://github.com/symfony/symfony/blob/master/UPGRADE-2.1.md#security