Are you sure the assignment to $device is correct as $this->device_factory->c...esponse' => $response)) (which targets Balloon\App\Webauthn\Dev...DeviceFactory::create()) seems to always return null.
This check looks for function or method calls that always return null and whose
return value is assigned to a variable.
Both the $myVar assignment in line 1 and the $higher assignment in line 2
are dead. The first because $myVar is never used and the second because
$higher is always overwritten for every possible time line.
Loading history...
61
'id' => $id,
62
'type' => $type,
63
'rawId' => $rawId,
64
'response' => $response,
65
]);
66
67
return (new Response())->setCode(201)->setBody([]);
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.