Open DevMcC opened 2 years ago
Hi are there any updates ? :)
Suppressing the deprecation messages here in this project is probably the wrong way as the "problem" is based on the external interface "HandlerRegistryInterface".
These message should be considered as a hint for the developer to use native return types instead of just rely on doctypes. For reference and better explaination see the following links: https://github.com/symfony/symfony/issues/44802#issuecomment-1001776200 https://github.com/sebastianbergmann/php-file-iterator/pull/74
I recently upgraded to Symfony 5.4 and now I am receiving a deprecration warning about
JMSHandlerRegistryV2
:I can't seem to fix this deprecration in my project, so I think it can only be fixed in here instead. If wanted, I can create a PR to fix this.
I fixed the deprecation in the vendor folder by adding
@return
to thegetHandler
method:Reproduction path:
bin/console