| Conditions | 3 |
| Paths | 2 |
| Total Lines | 22 |
| Code Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 53 | public function hydrate($value) |
||
| 54 | { |
||
| 55 | $metaData = $this->metaData; |
||
| 56 | $managers = []; |
||
| 57 | |||
| 58 | if ('__empty__' == $value) { |
||
| 59 | unset($metaData['organizations:managers']); |
||
| 60 | |||
| 61 | } else { |
||
| 62 | foreach ($value as $manager) { |
||
| 63 | list($id, $name, $email) = explode('|', $manager, 3); |
||
| 64 | $managers[] = [ |
||
| 65 | 'id' => $id, |
||
| 66 | 'name' => $name, |
||
| 67 | 'email' => $email, |
||
| 68 | ]; |
||
| 69 | } |
||
| 70 | $metaData['organizations:managers'] = $managers; |
||
| 71 | } |
||
| 72 | |||
| 73 | return $metaData; |
||
| 74 | } |
||
| 75 | } |
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..