Closed frankverhoeven closed 3 years ago
Are these changes still required? I would rather not add return types to all functions, unless required. I sadly missed this before updating/tagging a new version with phpunit 9. The common test suite seemed to be working though.
Overall these changes are good, but I think a bit too much:
$this->
vs self::
-> matter of preference according to https://phpunit.readthedocs.io/en/9.5/assertions.html#static-vs-non-static-usage-of-assertion-methods
This PR will upgrade the package to support PHPUnit
^8.0 || ^9.0
.Note that this change is not backwards compatible, because lower versions of PHPUnit are no longer supported. Reason being that
assertInternalType
has been deprecated/removed and replaced by specific assertions likeassertIsString
. Moreover, the minimal PHP version has been increased to7.2
, because that is the lowest version supported by PHPUnit 8.0.