Есть ли в PhpStorm способ преобразовать PHPDoc в подсказку типа и вернуть объявление типа?
Например. трансформировать...
/**
* @param float $coefficient
* @return $this
*/
public function setCoefficient($coefficient)
{
$this->coefficient = (float) $coefficient;
return $this;
}
/**
* @return float
*/
public function getCoefficient()
{
return $this->coefficient;
}
...to
public function setCoefficient(float $coefficient): self
{
$this->coefficient = (float) $coefficient;
return $this;
}
public function getCoefficient(): float
{
return $this->coefficient;
}
Filltext: Похоже, ваш пост в основном состоит из кода; пожалуйста, добавьте некоторые подробности.