While I install the php from https://webtatic.com/packages/php71/#sapis for PHP7.2 ,PHP7.1 and PHP7.0, I have try to use find() function but the system throw me the error below. I install PHP7.2 in windows by XAMPP is working fine with mongodm.
Argument 3 passed to MongoDB\Driver\Server::executeQuery() must be an instance of MongoDB\Driver\ReadPreference or null, array given
While I install the php from https://webtatic.com/packages/php71/#sapis for PHP7.2 ,PHP7.1 and PHP7.0, I have try to use find() function but the system throw me the error below. I install PHP7.2 in windows by XAMPP is working fine with mongodm.
Argument 3 passed to MongoDB\Driver\Server::executeQuery() must be an instance of MongoDB\Driver\ReadPreference or null, array given
Kindly provide new fix for this issues.