[3.0.0] - 2024-12-16
This release is mainly a bump to a PHP 8.3 requirement with some minor refactoring.
Added
- Added rector/rector to dev-dependencies.
- Added new class constants to
Esi\CoverageCheck\CoverageCheckandEsi\CoverageCheck\Command\CoverageCheckCommandfor ERROR and OK messages, so they are easier to update (if needed) in the future.- The constants are the same for both classes, with some exceptions:
- The constants in
CoverageCheckCommanddo not use the '[ERROR]' and '[OK]' prefixes as thesymfony/consolemethod(s) used to output these messages add the prefixes automatically. - The constants in
CoverageCheckCommandalso remove the extra '%' in the format as it is added in with the formatted coverage.
- Added new Exceptions:
Exceptions\FailedToGetFileContentsExceptionExceptions\InvalidInputFileExceptionExceptions\NotAValidCloverFileExceptionExceptions\ThresholdOutOfBoundsException
- Added vimeo/psalm, psalm/plugin-phpunit, and psalm/plugin-symfony as dev-dependencies
- Fixes implemented based on Psalm reported errors.
Changed
- Minimum PHP version bumped to 8.3.
- Class constants updated to have the appropriate typing.
- All classes marked
final, and theUtilsclass made abstract since it is never instantiated (all static methods). coverage-checkfile moved tobin/coverage-check- Update to PHPUnit 12 (
^12.0-devuntil official release). - Updated
phpstan-baseline.neonas it doesn't seem to understandxpath()'s ability to possibly returnnullorfalse. - Add nightly PHP (8.5-dev) to GitHub workflow
continuous-integration.yml.
Full Changelog: 2.0.2...3.0.0