We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc69c95 commit d78823eCopy full SHA for d78823e
composer.json
@@ -30,5 +30,5 @@
30
"AlinO\\Db\\": "src"
31
}
32
},
33
- "version": "3.1.9"
+ "version": "3.1.10"
34
src/MysqliDb.php
@@ -854,8 +854,8 @@ public function first(): ?object
854
855
$res = $this->getOne($this->modelTable, $this->modelSelect);
856
857
- if (is_array($res) && isset($res[0])) {
858
- return new $this->modelClass($res[0]);
+ if (is_array($res)) {
+ return new $this->modelClass($res);
859
860
861
return null;
0 commit comments