If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated annotation
21
/** @scrutinizer ignore-deprecated */ $this->type = $type; // defined by the parent class
This property has been deprecated. The supplier of the class has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the property will be
removed from the class and what other property to use instead.