Ignore deprecation notices during tests
“While not recommended, the deprecation notices can be completely ignored by declaring an empty function trigger_deprecation() {} in your application.”
https://github.com/symfony/deprecation-contracts
Closes: #1090840