| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 2 |
| CRAP Score | 2.5 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 50 | 4 | public static function fromLine($line, array $lineOptions) |
|
| 51 | { |
||
| 52 | if (static::validate(base64_decode($line['signature']), $line['line'], $lineOptions['key'])) { |
||
| 53 | return Factory::fromLine($line['line'], $lineOptions); |
||
| 54 | } |
||
| 55 | |||
| 56 | throw new \Exception('Signature mismatch!'); |
||
| 57 | 4 | } |
|
| 58 | } |
||
| 59 |
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..