1 | <?php |
||
21 | class WorkerNameTooLongException extends AbstractGearmanException |
||
22 | { |
||
23 | |||
24 | /** |
||
25 | * Construction method |
||
26 | * |
||
27 | * @param string $message Message |
||
|
|||
28 | * @param int $code Code |
||
29 | * @param \Exception $previous Previous |
||
30 | */ |
||
31 | public function __construct($message = null, $code = 0, \Exception $previous = null) |
||
38 | } |
||
39 |
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.