-
Notifications
You must be signed in to change notification settings - Fork 27
Open
Description
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
Labels
No labels