| 1 | <?php |
||
| 5 | class ClearStack extends \Exception |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * Thread object |
||
| 9 | * @var object Thread |
||
| 10 | */ |
||
| 11 | protected $thread; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @param string $msg Message |
||
| 15 | * @param integer $code Code |
||
| 16 | * @param \PHPDaemon\Thread\Generic $thread |
||
|
|
|||
| 17 | */ |
||
| 18 | public function __construct($msg, $code, $thread = null) |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Gets associated Thread object |
||
| 26 | * @return object Thread |
||
| 27 | */ |
||
| 28 | public function getThread() |
||
| 32 | } |
||
| 33 |
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.