Skip to content

3.0.0

Latest

Choose a tag to compare

@ericsizemore ericsizemore released this 16 Dec 08:04
· 229 commits to master since this release
e44da5c

[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\CoverageCheck and Esi\CoverageCheck\Command\CoverageCheckCommand for 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 CoverageCheckCommand do not use the '[ERROR]' and '[OK]' prefixes as the symfony/console method(s) used to output these messages add the prefixes automatically.
    • The constants in CoverageCheckCommand also remove the extra '%' in the format as it is added in with the formatted coverage.
  • Added new Exceptions:
    • Exceptions\FailedToGetFileContentsException
    • Exceptions\InvalidInputFileException
    • Exceptions\NotAValidCloverFileException
    • Exceptions\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 the Utils class made abstract since it is never instantiated (all static methods).
  • coverage-check file moved to bin/coverage-check
  • Update to PHPUnit 12 (^12.0-dev until official release).
  • Updated phpstan-baseline.neon as it doesn't seem to understand xpath()'s ability to possibly return null or false.
  • Add nightly PHP (8.5-dev) to GitHub workflow continuous-integration.yml.

Full Changelog: 2.0.2...3.0.0