From 76d2bd927a9c7fd51e3d9f73a595feeba8897f36 Mon Sep 17 00:00:00 2001 From: Adrien Leloup Date: Fri, 11 Oct 2024 15:21:04 +0200 Subject: [PATCH] Fix property not initialized error on jsonSerialize --- src/Price.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Price.php b/src/Price.php index 2c5e2aa..3f9a2c2 100644 --- a/src/Price.php +++ b/src/Price.php @@ -39,7 +39,7 @@ class Price implements \JsonSerializable /** * The VAT definition */ - protected ?Vat $vat; + protected ?Vat $vat = null; /** * The price modifiers to apply