doctrine / DoctrineModule

Doctrine Module for Laminas
http://www.doctrine-project.org/projects/doctrine-module.html
MIT License
398 stars 270 forks source link

Update dependencies and switch to PHPUnit 9 #738

Closed driehle closed 2 years ago

driehle commented 2 years ago

For the next minor release (i.e. 4.2.0) I'd like to update all dependencies to their latest version that is still supporting PHP 7.3. Except for laminas-servicemanager, all dependencies still support PHP 7.3. The service manager has to stay at 3.7.0, as 3.8.0 dropped PHP 7.3 there.

With the update of the dependencies, I switched from PHPUnit 8 to PHPUnit 9. This brings in some deprecation messages, mostly about prophesize(). The package phpspec/prophecy-phpunit was added to solve this. Another issue refered to assertRegExp() (now named assertMatchesRegularExpression()) and expects($this->at(1) not being supported anymore (solved by using willReturnMap() instead).

The phpcs.xml.dist was updated to be in line with the one a doctrine/doctrine-laminas-hydrator. Actually, there were a couple of old exceptions in that file, which - when removed - did not cause any issues. Hence it makes sense removing them.