| Conditions | 1 |
| Paths | 1 |
| Total Lines | 46 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 6 | function test_something() { |
||
| 7 | } |
||
| 8 | |||
| 9 | /** |
||
| 10 | * Mock a set of filters. |
||
| 11 | * |
||
| 12 | * @param array $args Array of filters with their arguments. |
||
|
|
|||
| 13 | * @return phpmock\Mock The mock object. |
||
| 14 | */ |
||
| 15 | protected function mock_filters( $filters = array() ) { |
||
| 16 | return $this->mock_function_with_args( 'apply_filters', $filters ); |
||
| 17 | } |
||
| 18 | } |
||
| 19 |
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.