Skip to content
Snippets Groups Projects

fix: fix bad return type in DatabaseCommand

Merged Pavel Vyskočil requested to merge github/fork/vyskocilpavel/fix_return_type into master
1 file
+ 5
1
Compare changes
  • Side-by-side
  • Inline
@@ -28,6 +28,10 @@ abstract class DatabaseCommand
@@ -28,6 +28,10 @@ abstract class DatabaseCommand
protected function write($query, $params): bool
protected function write($query, $params): bool
{
{
return $this->conn->write($query, $params);
$response = $this->conn->write($query, $params);
 
if (is_int($response)) {
 
return true;
 
}
 
return false;
}
}
}
}
Loading