Issue #3250442 by daffie, andypost, longwave: [Symfony 6] Symfony 6 adds static return type hinting and Prophecy fails on it