Invalid php code fix (minor update)

Invalid php code fix (minor update) - applies to all symfony versions