yiisoft /
router
| 1 | <?php |
||||||
| 2 | |||||||
| 3 | namespace PHPSTORM_META { |
||||||
| 4 | |||||||
| 5 | expectedArguments(\Yiisoft\Router\Route::getData(), 0, argumentsSet('routeDataKeys')); |
||||||
|
0 ignored issues
–
show
The method
Yiisoft\Router\Route::getData() is not static, but was called statically.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
|
|||||||
| 6 | |||||||
| 7 | registerArgumentsSet( |
||||||
| 8 | 'routeDataKeys', |
||||||
| 9 | 'name', |
||||||
| 10 | 'pattern', |
||||||
|
0 ignored issues
–
show
The call to
PHPSTORM_META\registerArgumentsSet() has too many arguments starting with 'pattern'.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
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. Please note the @ignore annotation hint above. Loading history...
|
|||||||
| 11 | 'host', |
||||||
| 12 | 'hosts', |
||||||
| 13 | 'methods', |
||||||
| 14 | 'defaults', |
||||||
| 15 | 'override', |
||||||
| 16 | 'hasMiddlewares', |
||||||
| 17 | 'enabledMiddlewares', |
||||||
| 18 | ); |
||||||
| 19 | } |
||||||
| 20 |
This check compares calls to functions or methods with their respective definitions. If the call has less 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. Please note the @ignore annotation hint above.