Skip to content

Version 4.2.0

Compare
Choose a tag to compare
@julien-boudry julien-boudry released this 23 Aug 18:31
· 273 commits to master since this release

Description

Redesign & refactor the console. And internal improvements.

Added

  • Support for PHP 8.2
  • [Console] Redesign console, add many styles, colors, and logo.
  • [Console] Improve interactive mode.

Changed

  • [Methods] Fix a rare crash on HighestAverage methods.
  • New namespace CondorcetPHP\Condorcet\Utilsand move CondorcetUtil and VoteUtil classes to it.

Internal

  • Refactor Vote entry parser to new class CondorcetPHP\Condorcet\Utils\VoteEntryParser: Better architecture and reduced code duplication.

Dev

  • [Benchmarks] Use a random deterministic seed for generating votes. (Benchmarks now require PHP 8.2 at least)
  • [Tests] Use a random deterministic if available (PHP >= 8.2) for generating votes.
  • [Coding Style] Improve rules.