| 1 | <?php |
||
| 20 | class MessageMapperDispatcher |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * @var array |
||
| 24 | */ |
||
| 25 | private $data = array(); |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @var mixed |
||
| 29 | */ |
||
| 30 | private $object; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @var ReflectionObject |
||
| 34 | */ |
||
| 35 | private $reflection; |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Constructor. |
||
| 39 | * |
||
| 40 | * @param mixed $data |
||
| 41 | * @param mixed $object |
||
| 42 | */ |
||
| 43 | public function __construct($data, $object) |
||
| 49 | |||
| 50 | /** |
||
| 51 | * Dispatch a method. |
||
| 52 | * |
||
| 53 | * @param string $method |
||
| 54 | * |
||
| 55 | * @return mixed |
||
| 56 | */ |
||
| 57 | public function dispatch($method) |
||
| 66 | |||
| 67 | /** |
||
| 68 | * Assert that method is exist. |
||
| 69 | * |
||
| 70 | * @param string $method |
||
| 71 | */ |
||
| 72 | private function assertThatMethodExist($method) |
||
| 84 | } |
||
| 85 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..