| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 36 | public function __construct( |
||
| 37 | $message = 'Ups, something went wrong, please try again.', |
||
| 38 | $flash = 'something_went_wrong_error', |
||
| 39 | $apiResponseCode = 400, |
||
| 40 | $code = 0, |
||
| 41 | \Exception $previous = null |
||
| 42 | ) { |
||
| 43 | parent::__construct($message, $code, $previous); |
||
| 44 | |||
| 45 | $this->flash = $flash; |
||
| 46 | $this->apiResponseCode = $apiResponseCode; |
||
| 47 | } |
||
| 48 | |||
| 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.