It seems like $request of type Behatch\HttpCall\Request is incompatible with the declared type Behatch\HttpCall\Request\BrowserKit of property $request.
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...
28
}
29
30
/**
31
* Sets the default Accept HTTP header to null (workaround to artificially remove it).
32
* @AfterStep
33
* @param AfterStepScope $event
34
*/
35
public function removeAcceptHeaderAfterRequest(AfterStepScope $event)
36
{
37
if (preg_match('/^I send a "[A-Z]+" request to ".+"/', $event->getStep()->getText())) {
38
$this->request->setHttpHeader('Accept', null);
39
}
40
}
41
42
/**
43
* Sets the default Accept HTTP header to null (workaround to artificially remove it).
44
*
45
* @BeforeScenario
46
*/
47
public function removeAcceptHeaderBeforeScenario()
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..