The method `withConsecutive()` is deprecated since 9.6 and needs to be replaced. https://github.com/sebastianbergmann/phpunit/issues/4564 Maybe this could be done like here: https://github.com/symfony/symfony/pull/49621