Wrong type - no warning Follow
Hi,
is there A way that PHPStorm can warn me if I to something like that:
/**
* Class MyClass
*/
class MyClass
{
/** @var int */
protected $thisIsAnInteger = 0;
/**
* @param array $thisIsAnArray
*/
public function addWrongType(array $thisIsAnArray) {
$this->thisIsAnInteger = $thisIsAnArray; /* Here is no warning */
}
}
Please sign in to leave a comment.