1 | <?php |
||
16 | class ExitException extends \Exception { |
||
17 | /** |
||
18 | * @var int the exit status code |
||
19 | */ |
||
20 | public $statusCode; |
||
21 | |||
22 | /** |
||
23 | * Constructor. |
||
24 | * |
||
25 | * @param int $status the exit status code |
||
26 | * @param string $message error message |
||
|
|||
27 | * @param int $code error code |
||
28 | * @param Throwable $previous The previous exception used for the exception chaining. |
||
29 | */ |
||
30 | public function __construct($status = 0, $message = null, $code = 0, Throwable $previous = null) { |
||
34 | |||
35 | public function getName() { |
||
38 | } |
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.