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

Commit 7e11ee6

Browse files
author
Dominik František Bučík
authored
Merge pull request #176 from vyskocilpavel/fix_return_type
fix: fix bad return type in DatabaseCommand
2 parents 48a1cb8 + 95328ba commit 7e11ee6

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)