| 1 | <?php |
||
| 10 | class ReplyParser extends AbstractBlockParser |
||
| 11 | { |
||
| 12 | |||
| 13 | const REGEXP_REPLY = '/\@(?<user>[\w]{4,20})\#(?<post>[0-9]{1,16})/'; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * Parse a line and determine if it contains an emoji. If it does, |
||
| 17 | * then we do the necessary. |
||
| 18 | * |
||
| 19 | * @param \League\CommonMark\InlineParserContext $inlineContext |
||
|
|
|||
| 20 | * |
||
| 21 | * @return bool |
||
| 22 | */ |
||
| 23 | public function parse(ContextInterface $context, Cursor $cursor) |
||
| 39 | } |
||
| 40 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function. It has, however, found a similar but not annotated parameter which might be a good fit.
Consider the following example. The parameter
$irelandis not defined by the methodfinale(...).The most likely cause is that the parameter was changed, but the annotation was not.