We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6d723db commit ddfac36Copy full SHA for ddfac36
src/ValueObject/DateTimeFactory.php
@@ -208,6 +208,7 @@ public function methodToString(string $argumentName): NodeVisitor
208
MethodGenerator::FLAG_PUBLIC,
209
new BodyGenerator($this->parser, 'return $this->' . $argumentName . '->format(self::OUTPUT_FORMAT);')
210
);
211
+ $method->setTyped($this->typed);
212
$method->setReturnType('string');
213
214
return new ClassMethod($method);
0 commit comments