| 1 | <?php |
||
| 5 | final class TestData |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @var array |
||
| 9 | */ |
||
| 10 | protected $testData = array(); |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @param array $input |
||
| 14 | */ |
||
| 15 | public function __construct($input = array()) |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @param array $input |
||
| 23 | * @param string $key |
||
|
|
|||
| 24 | * |
||
| 25 | * @return void |
||
| 26 | */ |
||
| 27 | public function setInput($input = array(), $key = null) |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @param string $key |
||
| 44 | * @param mixed|null $value |
||
| 45 | * |
||
| 46 | * @return void |
||
| 47 | */ |
||
| 48 | public function addInput($key, $value = null) |
||
| 58 | |||
| 59 | /** |
||
| 60 | * @param string|null $item |
||
| 61 | * |
||
| 62 | * @return mixed |
||
| 63 | */ |
||
| 64 | protected function getInput($item = null) |
||
| 69 | } |
||
| 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.