| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 38 | protected function getInstance($data) |
||
| 39 | { |
||
| 40 | $request = new Request((array) $data); |
||
| 41 | $attributes = (new Processor($request))->process(); |
||
| 42 | |||
| 43 | if($this->config->getDriver() == 'database') { |
||
| 44 | return PayuPayment::find($attributes); |
||
| 45 | } |
||
| 46 | |||
| 47 | return new PayuPayment($attributes); |
||
| 48 | } |
||
| 49 | |||
| 55 |
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..