Skip to content

Version 5.0.0

Choose a tag to compare

@julien-boudry julien-boudry released this 30 Apr 20:10
· 70 commits to master since this release
v5.0.0
03de71d

Description

Major release with many breaking changes, a modernized API, removal of deprecated features, and significant optimizations.
To upgrade, it is recommended to test carefully and read the documentation. However, the main concepts and methods remain mostly unchanged.

Breaking Changes

  • Removal of methods, notably many old setters/getters replaced by direct access to public properties.
  • Many methods and properties have been renamed or merged for better consistency.
  • Result stats API has been completely reworked.
  • Dropped support for PHP < 8.4.
  • Some methods no longer return true if no error occurs. Instead, they return static to allow method chaining.

Added

  • Documentation now uses standard PHPDoc tags, compatible with IDEs.
  • Brand new documentation book available at https://docs.condorcet.io, replacing the old one.

Changed

  • Result objects now expose all their properties as typed, read-only properties instead of getters methods.
  • Result stats no longer return as a mixed value (previously: array), but now return an object implementing StatsInterface.

Dev

  • Added Pest mutation testing and advanced static analysis.
  • Added some architecture tests.
  • PHPStan 2.0 configuration.
  • PHP Rector configuration.
  • Added some PHPDoc generics.