replaced printable methods with those of https://github.com/symfony/symfony/pull/10687