Skip to content

Commit

Permalink
Fix missing setTyped()
Browse files Browse the repository at this point in the history
  • Loading branch information
sandrokeil committed Nov 10, 2020
1 parent 6d723db commit ddfac36
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ValueObject/DateTimeFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ public function methodToString(string $argumentName): NodeVisitor
MethodGenerator::FLAG_PUBLIC,
new BodyGenerator($this->parser, 'return $this->' . $argumentName . '->format(self::OUTPUT_FORMAT);')
);
$method->setTyped($this->typed);
$method->setReturnType('string');

return new ClassMethod($method);
Expand Down

0 comments on commit ddfac36

Please sign in to comment.