Issue #3262937 by mallezie, alexpott, catch, mondrake, mglaman: PHPStan fails when @legacy tests call deprecated code