You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What is the alternative for Fatal error: Uncaught Error: Call to undefined method MongoDB\Driver\Cursor::hasNext?
One of my application using MongoDB Client library with old php version. I just upgraded my php version as well as upgraded mongo library. When following function is calling, it's giving me
Fatal error: Uncaught Error: Call to undefined method MongoDB\Driver\Cursor::hasNext
`function get_result_row () {
if ($this->cursor->hasNext()) {
return $this->cursor->getNext();
}