PHP MongoDB class not recognized

Hello - every line of my php app like this…
$query = new MongoDB\Driver\Query($filter,$options);

gets marked as an error as unrecognized. What should I do?

Is this the same as this? Php syntax check problem

Yes, sorry - one was before I was able to install php-mongodb and one after.