| Conditions | 3 |
| Paths | 3 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 29 | public function validate(string $number) |
||
| 30 | { |
||
| 31 | try { |
||
| 32 | if ($number != config('laravel-ecuador-identification.final-customer.unique-value')) { |
||
| 33 | throw new EcuadorIdentificationException("Field is invalid"); |
||
| 34 | } |
||
| 35 | } catch (EcuadorIdentificationException $e) { |
||
| 36 | throw new EcuadorIdentificationException($e->getMessage()); |
||
| 37 | } |
||
| 38 | |||
| 39 | return $this->billingCode; |
||
| 40 | } |
||
| 41 | } |
||
| 42 |
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..