Skip to content

The type hinting doesn't seem to work for short doc comments #45

@Delvar

Description

@Delvar

The type hinting doesn't seem to work for short doc comments,

Short tag example, uses mixed

     /** @var  int */
    private $testInt = 0;

    /**
     * Set the value of testInt
     * 
     * @param   mixed  $testInt  
     * @return  self
     */
    public function setTestInt($testInt): self
    {
        $this->testInt = $testInt;

        return $this;
    }

Multi line doc block seems to work great.

     /** 
     * @var  int
     */
    private $testInt2 = 0;

    /**
     * Set the value of testInt2
     * 
     * @param   int  $testInt2  
     * @return  self
     */
    public function setTestInt2(int $testInt2): self
    {
        $this->testInt2 = $testInt2;

        return $this;
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions