Wrong type - no warning

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 */
}

}
1

Please sign in to leave a comment.