It seems like $response->getData() targeting Tarantool\Response::getData() can also be of type null; however, Tarantool\Mapper\Client::log() does only seem to accept array, maybe add an additional type check?
This check looks at variables that are passed out again to other methods.
If the outgoing method call has stricter type requirements than the method itself, an issue is raised.
An additional type check may prevent trouble.
Loading history...
30
31
62
return $response;
32
}
33
34
62
private function log($start, $class, $request = [], $response = [])
35
{
36
62
if ($this->logging) {
37
62
$this->log[] = new Event(microtime(1) - $start, $class, $request, $response);
This check looks for function or method calls that always return null and whose return value is assigned to a variable.
The method
getObject()
can return nothing but null, so it makes no sense to assign that value to a variable.The reason is most likely that a function or method is imcomplete or has been reduced for debug purposes.