Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Delvar opened this issue Aug 26, 2022 · 0 comments
Open

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

Delvar opened this issue Aug 26, 2022 · 0 comments

Comments

@Delvar
Copy link

Delvar commented Aug 26, 2022

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;
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant