Skip to content

Latest commit

 

History

History
19 lines (15 loc) · 937 Bytes

CHANGELOG.md

File metadata and controls

19 lines (15 loc) · 937 Bytes

Changelog

This Changelog refers to all changes since v5.0.0


v5.0.1

  • Upgrade of dependencies, removal of PHPStan as I focused more on Psalm.
  • All test classes are now final and use attributes instead of annotations.
  • Using InfectionPHP to check the effectiveness of the test set (100% coverage and MSI score).
  • Improvement of the calculation logic in Discount calculator.

v5.0.0

  • All Calculator classes return new price entities as a result.
  • PriceCalculator Facade has PriceCalculatorInterface as return type.
  • VatCalculator allows classes that implement PriceCalculatorInterface instead of the concrete PriceCalculator class.
  • Vat and Price entity now has a private constructor and is initialized by a new static create method.
  • The ConverterFactory class uses match instead of switch.
  • Fixed unwanted forced order in the VAT calculation (for more details see Upgrade to 5.0 Guide)