Fix symfony deprecated method for InlineValidator