openeuropa / epoetry-client

PHP client for the ePoetry service.
European Union Public License 1.2
2 stars 2 forks source link

NullableGetterAssembler should generate the proper @return documentation. #9

Closed drupol closed 5 years ago

drupol commented 5 years ago

When a method has a nullable return type, the phpdoc block generated is:

    /**
     * @return string
     */
    public function getMessage(): ?string
    {
        return $this->message;
    }

It should be like this:

    /**
     * @return string|null
     */
    public function getMessage(): ?string
    {
        return $this->message;
    }