The call to Opis\Closure\unserialize() has too many arguments starting with array('allowed_classes' => true).
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...
48
49
if ($router instanceof Router) {
50
return $router;
51
}
52
}
53
54
$builder = $this->builder;
55
$router = $builder(new Router());
56
57
if (false === $this->cacheEnabled) {
58
return $router;
59
}
60
61
if ($router instanceof Router) {
62
$router->prepareRoutes($request);
63
file_put_contents($this->cacheFile, s($router));
64
return $router;
65
}
66
67
throw new InvalidArgumentException('Invalid Router builder provided to cached router');
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.