error() returns string or null
The error() function can return either a string or a null.
public function error()
{
$error = $this->error;
$this->error = null;
return $error;
}
This should be defined as a string. Until we can support 7.1, which has nullable variables, an empty string will have to do. That would be a SEM_VER bump, anyway.