The class property has an invalid type specified in the Docblock comment. This would lead to emitting wrong type-hint suggestions.
This can happen because of human errors, such as:
trait Helper
{
}
class Checker
{
/** @var EmailService */
public $emailService; // "EmailService" class doesn't exist
/** @var Helper */
private $helper; // uses trait "Helper" as type, which is incorrect
}
class EmailService
{
}
class Helper
{
}
class Checker
{
/** @var EmailService */
public $emailService;
/** @var Helper */
private $helper;
}