From 4174c7230726469e33d4ef834358d64ff1986d8c Mon Sep 17 00:00:00 2001 From: Jahidul Pabel Islam Date: Mon, 2 Feb 2026 19:43:39 +0000 Subject: [PATCH] Enable dynamic properties in EntityDynamic class Add AllowDynamicProperties attribute to EntityDynamic class. --- src/PrintNode/EntityDynamic.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/PrintNode/EntityDynamic.php b/src/PrintNode/EntityDynamic.php index de83486..a674a91 100644 --- a/src/PrintNode/EntityDynamic.php +++ b/src/PrintNode/EntityDynamic.php @@ -2,6 +2,7 @@ namespace PrintNode; +#[\AllowDynamicProperties] abstract class EntityDynamic extends Entity { @@ -32,7 +33,7 @@ public function __set($propertyName, $value) /** * Maps a json object to this entity - * + * * @param string $json The JSON to map to this entity * @return string */ @@ -49,7 +50,7 @@ public function mapValuesFromJson($json) /** * Implements the jsonSerialize method - * + * * @return string */ #[\ReturnTypeWillChange]