1 | <?php |
||
14 | class DataMapperOutputNotValidException extends \Exception |
||
15 | { |
||
16 | /** |
||
17 | * @var ConstraintViolationList |
||
18 | */ |
||
19 | protected $violations; |
||
20 | |||
21 | 2 | public function __construct(ConstraintViolationListInterface $violations) |
|
25 | |||
26 | /** |
||
27 | * @return ConstraintViolationList |
||
28 | */ |
||
29 | 1 | public function getViolations() |
|
33 | } |
||
34 |
Our type inference engine has found a suspicous assignment of a value to a property. This check raises an issue when a value that can be of a given class or a super-class is assigned to a property that is type hinted more strictly.
Either this assignment is in error or an instanceof check should be added for that assignment.