| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 48 | public function addInput($key, $value = null) |
||
| 49 | { |
||
| 50 | assert(is_string($key)); |
||
| 51 | if (isSet($this->testData[$key])) { |
||
| 52 | assert(is_array($this->testData[$key])); |
||
| 53 | $this->testData[$key] = array_merge($this->testData[$key], $value); |
||
| 54 | } else { |
||
| 55 | $this->testData[$key] = $value; |
||
| 56 | } |
||
| 57 | } |
||
| 58 | |||
| 70 |
This check looks for
@paramannotations where the type inferred by our type inference engine differs from the declared type.It makes a suggestion as to what type it considers more descriptive.
Most often this is a case of a parameter that can be null in addition to its declared types.