From 2ddc9a827a31a241e4d27e6819fe297848cf25e6 Mon Sep 17 00:00:00 2001 From: lukas Date: Wed, 3 Dec 2025 15:29:16 +0100 Subject: [PATCH] TypeHintTransferDecorator.php fix recursion bug @see https://github.com/wol-soft/php-json-schema-model-generator/issues/96 --- .../Decorator/TypeHint/TypeHintTransferDecorator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PropertyProcessor/Decorator/TypeHint/TypeHintTransferDecorator.php b/src/PropertyProcessor/Decorator/TypeHint/TypeHintTransferDecorator.php index 48e477b..b30eab6 100644 --- a/src/PropertyProcessor/Decorator/TypeHint/TypeHintTransferDecorator.php +++ b/src/PropertyProcessor/Decorator/TypeHint/TypeHintTransferDecorator.php @@ -20,6 +20,6 @@ public function __construct(protected PropertyInterface $property) {} */ public function decorate(string $input, bool $outputType = false): string { - return $this->property->getTypeHint($outputType); + return $this->property->getTypeHint($outputType, [self::class]); } }