Conditions | 3 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
31 | public function fromArray($data) |
||
32 | { |
||
33 | parent::fromArray($data); |
||
34 | if (array_key_exists('account_number_ending', $data) && !$this->getAccountNumber()) { |
||
35 | $prefix = str_repeat('*', max(0, 8 - strlen($data['account_number_ending']))); |
||
36 | $this->setAccountNumber($prefix.$data['account_number_ending']); |
||
37 | } |
||
38 | $this->setCreatedAt(new \DateTime($this->getCreatedAt())); |
||
39 | } |
||
41 |
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..