I have Gitlab repo with CI integrated. Tests are passing in my computer but failing in Gitlab, which is throwing an error below. This had been worked till yesterday, but failing now even for the previously passed branches. Anyone has any idea?
Fatal error: Declaration of Symfony\Bundle\FrameworkBundle\Test\KernelTestCase::tearDown() must be compatible with PHPUnit\Framework\TestCase::tearDown(): void in /builds/prolocalisapp/backend/vendor/symfony/framework-bundle/Test/KernelTestCase.php on line 136
composer require --dev phpunit/phpunit *will install any version, as opposed tocomposer require --dev phpunit/phpunit ^5.7which will only install 5.x releases. PHPUnit 7 is probably the version that introduces return type hinting. - scrowlercomposer.lockand only do acomposer installin your CI you should be save from this, but best make sure to restrict phpunit to a version below 8.0 in your composer.json as described above. - dbrumann