Skip to content

Commit

Permalink
FIX Don't assume mysql handle is an object (#11129)
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli committed Feb 8, 2024
1 parent 4d96674 commit e87c724
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ORM/Connect/MySQLQuery.php
Expand Up @@ -76,7 +76,7 @@ public function getIterator(): Traversable
public function rewind(): void
{
// Check for the method first since $this->handle is a mixed type
if (method_exists($this->handle, 'data_seek')) {
if (is_object($this->handle) && method_exists($this->handle, 'data_seek')) {
$this->handle->data_seek(0);
}
}
Expand Down

0 comments on commit e87c724

Please sign in to comment.