$this->store of type object<SMW\Store> is not a sub-type of object<SMWStore>. It seems like you assume a child class of the class SMW\Store to be always present.
This check looks for parameters that are defined as one type in their type
hint or doc comment but seem to be used as a narrower type, i.e an
implementation of an interface or a subclass.
Consider changing the type of the parameter or doing an instanceof check before assuming
your parameter is of the expected type.
Loading history...
46
false
47
1
);
48
}
49
50
/**
51
* @since 1.0
52
*
53
* @param Query $query
54
* @param JsonResponseParser $jsonResponseParser
55
*
56
* @return QueryResult
57
*/
58
1
public function newByAskApiHttpRequestQueryResult( Query $query, JsonResponseParser $jsonResponseParser ) {
59
60
1
$queryResult = new ByAskApiHttpRequestQueryResult(
$this->store of type object<SMW\Store> is not a sub-type of object<SMWStore>. It seems like you assume a child class of the class SMW\Store to be always present.
This check looks for parameters that are defined as one type in their type
hint or doc comment but seem to be used as a narrower type, i.e an
implementation of an interface or a subclass.
Consider changing the type of the parameter or doing an instanceof check before assuming
your parameter is of the expected type.
This check looks for parameters that are defined as one type in their type hint or doc comment but seem to be used as a narrower type, i.e an implementation of an interface or a subclass.
Consider changing the type of the parameter or doing an instanceof check before assuming your parameter is of the expected type.