Skip to content

Commit ddfac36

Browse files
committed
Fix missing setTyped()
1 parent 6d723db commit ddfac36

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ValueObject/DateTimeFactory.php

+1
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@ public function methodToString(string $argumentName): NodeVisitor
208208
MethodGenerator::FLAG_PUBLIC,
209209
new BodyGenerator($this->parser, 'return $this->' . $argumentName . '->format(self::OUTPUT_FORMAT);')
210210
);
211+
$method->setTyped($this->typed);
211212
$method->setReturnType('string');
212213

213214
return new ClassMethod($method);

0 commit comments

Comments
 (0)