The expression return $stmt->fetchColumn() could return the type false which is incompatible with the type-hinted return string. Consider adding an additional type-check to rule them out.
Loading history...
27
}
28
29
5
public function quote(string $input) : string
30
{
31
5
$val = parent::quote($input);
32
33
// Fix for a driver version terminating all values with null byte
34
5
if (strpos($val, "\0") !== false) {
35
$val = substr($val, 0, -1);
36
}
37
38
5
return $val;
39
}
40
41
321
protected function createStatement(\PDOStatement $stmt) : PDOStatement