First of all, ensure you don't have any deprecated!
The Symfony documentation explains it well, but let's sum up:
- install the phpunit bridge (
$ composer require --dev symfony/phpunit-bridge)
- also check all your pages using web profiler and be ensure there is no
- found errors and need help about how to fix it ? I did a sort of guide.