| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 29 | 4 | public function __construct($context, $file, Stmt $propertyContext, Property $property) |
|
| 30 | { |
||
| 31 | 4 | $this->context = $context; |
|
| 32 | 4 | $this->visibility = $this->getVisibility($property); |
|
| 33 | 4 | $this->file = $file; |
|
| 34 | 4 | $this->propertyContext = $propertyContext; |
|
| 35 | 4 | $this->property = $property; |
|
| 36 | 4 | } |
|
| 37 | |||
| 62 |
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.