The call to LineBeforeClassEndFixer::__construct() has too many arguments starting with false.
This check compares calls to functions or methods with their respective definitions.
If the call has more arguments than are defined, it raises an issue.
If a function is defined several times with a different number of parameters, the
check may pick up the wrong definition and report false positives. One codebase
where this has been known to happen is Wordpress.
In this case you can add the @ignorePhpDoc
annotation to the duplicate definition and it will be ignored.
Loading history...
21
}
22
23
24
/**
25
* @inheritdoc
26
*/
27
public function getName() {
28
return self::NAME;
29
}
30
31
32
/**
33
* @return string
34
*/
35
public function getDescription() {
36
return 'Set one empty line before class closing tag';
37
}
38
39
40
/**
41
* @param File $file
42
* @param Report $report
43
* @void
44
*/
45
4
public function process(File $file, Report $report) {
This check compares calls to functions or methods with their respective definitions. If the call has more arguments than are defined, it raises an issue.
If a function is defined several times with a different number of parameters, the check may pick up the wrong definition and report false positives. One codebase where this has been known to happen is Wordpress.
In this case you can add the
@ignore
PhpDoc annotation to the duplicate definition and it will be ignored.