[bugfix] Removed hack due to https://github.com/symfony/symfony/pull/12784