From d3113c6bc03a6f1c241074d6f5832e05daa7ca77 Mon Sep 17 00:00:00 2001 From: Ruben Van Assche Date: Mon, 7 Oct 2024 10:36:36 +0200 Subject: [PATCH] Fix TypeScript Transformer issue --- src/Support/TypeScriptTransformer/DataTypeScriptTransformer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Support/TypeScriptTransformer/DataTypeScriptTransformer.php b/src/Support/TypeScriptTransformer/DataTypeScriptTransformer.php index 6755d758..81bf5ce8 100644 --- a/src/Support/TypeScriptTransformer/DataTypeScriptTransformer.php +++ b/src/Support/TypeScriptTransformer/DataTypeScriptTransformer.php @@ -85,7 +85,7 @@ function (string $carry, ReflectionProperty $property) use ($isOptional, $dataCl $transformed = $this->typeToTypeScript( $type, $missingSymbols, - $property->getDeclaringClass()->getName(), + currentClass: $property->getDeclaringClass()->getName(), ); $propertyName = $dataProperty->outputMappedName ?? $dataProperty->name;