It seems like $phpMatcher of type object<Coduo\PHPMatcher\Matcher> is incompatible with the declared type object<Coduo\PHPMatcher\Matcher\Matcher> of property $phpMatcher.
Our type inference engine has found an assignment to a property that is incompatible
with the declared type of that property.
Either this assignment is in error or the assigned type should be added
to the documentation/type hint for that property..
Loading history...
19
}
20
21
/**
22
* @param Request $request
23
* @param Element $config
24
* @return boolean
25
*/
26
public function match(Request $request, Element $config)
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...
33
if (!$request->headers->has($headerName)) {
34
return false;
35
}
36
37
if (!$this->phpMatcher->match($request->headers->get($headerName), $headerValuePattern)) {
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..