Description
The base exception interface used in the driver (MongoDB\Driver\Exception\Exception) does not extend the Throwable or Exception base interfaces. This can be problematic; in our case, Doctrine MongoDB ODM documented a @throws \MongoDB\Driver\Exception\Exception on a class, which is then caught by static analysis with PHPStan:
PHPDoc tag @throws with type MongoDB\Driver\Exception\Exception is not subtype of Throwable
Environment
ext-mongodb version: 1.5.2