This Changelog refers to all changes since v5.0.0
- 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.
- 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 usesmatch
instead ofswitch
. - Fixed unwanted forced order in the VAT calculation (for more details see Upgrade to 5.0 Guide)