1 | <?php |
||
8 | class RepresentationErrorException extends ClientException |
||
9 | { |
||
10 | /** |
||
11 | * @param string $field |
||
|
|||
12 | * |
||
13 | * @return array|Error[] |
||
14 | */ |
||
15 | public function getErrors($field = null) |
||
35 | |||
36 | /** |
||
37 | * @param string $field |
||
38 | * |
||
39 | * @return bool |
||
40 | */ |
||
41 | public function hasErrors($field = null) |
||
47 | } |
||
48 |
This check looks for
@param
annotations 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.