| 1 | <?php |
||
| 7 | class ConversationException extends \RuntimeException |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var string|null |
||
| 11 | */ |
||
| 12 | private $sessionId; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @var Context|null |
||
| 16 | */ |
||
| 17 | private $context; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var array |
||
| 21 | */ |
||
| 22 | private $stepData; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @param string $message |
||
| 26 | * @param string|null $sessionId |
||
| 27 | * @param Context|null $context |
||
| 28 | * @param array $step |
||
|
|
|||
| 29 | */ |
||
| 30 | 11 | public function __construct($message, $sessionId = null, Context $context = null, array $stepData = []) |
|
| 38 | |||
| 39 | /** |
||
| 40 | * @return string|null |
||
| 41 | */ |
||
| 42 | 2 | public function getSessionId() |
|
| 46 | |||
| 47 | /** |
||
| 48 | * @return Context|null |
||
| 49 | */ |
||
| 50 | 2 | public function getContext() |
|
| 54 | |||
| 55 | /** |
||
| 56 | * @return array |
||
| 57 | */ |
||
| 58 | 4 | public function getStepData() |
|
| 62 | } |
||
| 63 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italyis not defined by the methodfinale(...).The most likely cause is that the parameter was removed, but the annotation was not.