Skip to content
This repository was archived by the owner on Jul 16, 2025. It is now read-only.

Commit f411322

Browse files
authored
Fix structured dto (#309)
1 parent 245e53f commit f411322

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Chain/StructuredOutput/ChainProcessor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function __construct(
3030
if (null === $this->serializer) {
3131
$propertyInfo = new PropertyInfoExtractor([], [new PhpDocExtractor()]);
3232
$normalizers = [new ObjectNormalizer(propertyTypeExtractor: $propertyInfo), new ArrayDenormalizer()];
33-
$this->serializer = $serializer ?? new Serializer($normalizers, [new JsonEncoder()]);
33+
$this->serializer = new Serializer($normalizers, [new JsonEncoder()]);
3434
}
3535
}
3636

0 commit comments

Comments
 (0)