Closed
Description
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 typeMongoDB\Driver\Exception\Exception
is not subtype ofThrowable
Environment
ext-mongodb
version: 1.5.2
Metadata
Metadata
Assignees
Labels
No labels