-
Notifications
You must be signed in to change notification settings - Fork 232
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CommandDataCollector #488
Comments
Indeed, the signature contains |
Of course. let me fork the project. I'm wondering how could I check that changing interface Throwable by class \Exception won't break any other part of the code ? |
Changed exception interface 'Throwable' by the explicit class '\Exception' in order to fix doctrine#488
We need to check some more classes - #484 added doctrine/coding-standard which requires using |
Yes, that's my point. please let me know if I should send the PR. |
Yes please! 👍 |
ok it's done. |
Symfony\Component\HttpKernel\DataCollector\DataCollectorInterface interface changed (again) with the 5.0 version ! we have got : Symfony 4.2
Symfony 4.3 and 4.4
Symfony 5.0
|
See #604 - 4.1.0 with a fix will be out shortly. |
I'm trying to use the DoctrineMongoDBBundle with symfony4.
After the bundle installation,
composer require doctrine/mongodb-odm-bundle
I got this error:
Compile Error: Declaration of
Doctrine\Bundle\MongoDBBundle\DataCollector\CommandDataCollector::collect(Symfony\Component\HttpFoundation\Request $request, Symfony\Component\HttpFoundation\Response $response, ?Throwable $exception = NULL)
must be compatible with
Symfony\Component\HttpKernel\DataCollector\DataCollectorInterface::collect(Symfony\Component\HttpFoundation\Request $request, Symfony\Component\HttpFoundation\Response $response, ?Exception $exception = NULL)
This error can be fixed by changing Throwable by Exception.
The text was updated successfully, but these errors were encountered: