| Conditions | 1 |
| Paths | 1 |
| Total Lines | 19 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 71 | public static function deserialize(array $data) |
||
| 72 | { |
||
| 73 | $weekDays = array_map( |
||
| 74 | function ($dayOfWeek) { |
||
| 75 | return WeekDay::fromNative($dayOfWeek); |
||
| 76 | }, |
||
| 77 | $data['dayOfWeek'] |
||
| 78 | ); |
||
| 79 | |||
| 80 | return new static( |
||
| 81 | Time::fromNativeDateTime( |
||
| 82 | \DateTime::createFromFormat(self::FORMAT, $data['opens']) |
||
| 83 | ), |
||
| 84 | Time::fromNativeDateTime( |
||
| 85 | \DateTime::createFromFormat(self::FORMAT, $data['closes']) |
||
| 86 | ), |
||
| 87 | ...$weekDays |
||
| 88 | ); |
||
| 89 | } |
||
| 90 | |||
| 110 |
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..