Skip to content
This repository was archived by the owner on Sep 19, 2022. It is now read-only.

Commit 95328ba

Browse files
committed
fix: fix bad return type in DatabaseCommand
1 parent 3a01054 commit 95328ba

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/databaseCommand/DatabaseCommand.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ protected function read($query, $params)
2828

2929
protected function write($query, $params): bool
3030
{
31-
return $this->conn->write($query, $params);
31+
$response = $this->conn->write($query, $params);
32+
if (is_int($response)) {
33+
return true;
34+
}
35+
return false;
3236
}
3337
}

0 commit comments

Comments
 (0)