The class phm\HttpWebdriverClient\...nse\CookieAwareResponse does not exist. Did you forget a USE statement, or did you not list all dependencies?
This error could be the result of:
1. Missing dependencies
PHP Analyzer uses your composer.json file (if available) to determine the
dependencies of your project and to determine all the available classes and functions.
It expects the composer.json to be in the root folder of your repository.
Are you sure this class is defined by one of your dependencies, or did you maybe
not list a dependency in either the require or require-dev section?
2. Missing use statement
PHP does not complain about undefined classes in ìnstanceof checks. For
example, the following PHP code will work perfectly fine:
if($xinstanceofDoesNotExist){// Do something.}
If you have not tested against this specific condition, such errors might go
unnoticed.
This code seems to be duplicated across your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate
the same code in three or more different places, we strongly encourage you to
look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.
Loading history...
30
$cookieCount = $response->getCookieCount();
31
32
if ($cookieCount > $this->maxCookies) {
33
$result = new CheckResult(
34
CheckResult::STATUS_FAILURE,
35
$cookieCount . 'cookies were stored (limit was ' . $this->maxCookies . ').',
36
$cookieCount);
37
} else {
38
$result = new CheckResult(
39
CheckResult::STATUS_SUCCESS,
40
$cookieCount . ' cookies were stored (limit was ' . $this->maxCookies . ').',
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
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.