| 1 | <?php |
||
| 17 | class UpdateHandlingException extends \Exception |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * @var string |
||
| 21 | */ |
||
| 22 | protected $flash; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @var int |
||
| 26 | */ |
||
| 27 | protected $apiResponseCode; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @param string $message |
||
| 31 | * @param string $flash |
||
| 32 | * @param int $apiResponseCode |
||
| 33 | * @param int $code |
||
| 34 | * @param \Exception $previous |
||
|
|
|||
| 35 | */ |
||
| 36 | public function __construct( |
||
| 48 | |||
| 49 | /** |
||
| 50 | * @return string |
||
| 51 | */ |
||
| 52 | public function getFlash() |
||
| 56 | |||
| 57 | /** |
||
| 58 | * @return int |
||
| 59 | */ |
||
| 60 | public function getApiResponseCode() |
||
| 64 | } |
||
| 65 |
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.