Details
-
Improvement
-
Resolution: Unresolved
-
Medium
-
3.3.28, 4.2.3
-
None
-
Yes
Description
When using the platform in the Symfony profiler there are a lot of deprecation logs (1000+) related to our code, which makes it difficult to find logs related to the custom code.
They should be fixed to improve the logs and catch bugs faster. Some deprecation logs can cause problems with PHP8 for example.
a small example of these logs:
Method "Symfony\Component\Form\FormTypeInterface::getBlockPrefix()" might add "string" as a native return type declaration in the future. Do the same in implementation "Ibexa\ContentForms\Form\Type\FieldType\TextLineFieldType" now to avoid errors or add an explicit @return annotation to suppress this message. 10:00:33.000 deprecation Method "Symfony\Component\Serializer\Normalizer\DenormalizerInterface::supportsDenormalization()" might add "bool" as a native return type declaration in the future. Do the same in implementation "Ibexa\Bundle\Migration\Serializer\Normalizer\Step\Role\UpdateMetadataNormalizer" now to avoid errors or add an explicit @return annotation to suppress this message. 10:00:33.000 deprecation Method "Symfony\Component\Serializer\Normalizer\DenormalizerInterface::supportsDenormalization()" might add "bool" as a native return type declaration in the future. Do the same in implementation "Ibexa\Bundle\Migration\Serializer\Normalizer\Step\ReferenceSaveStepNormalizer" now to avoid errors or add an explicit @return annotation to suppress this message. 10:00:33.000 deprecation Method "Symfony\Component\Serializer\Normalizer\DenormalizerInterface::supportsDenormalization()" might add "bool" as a native return type declaration in the future. Do the same in implementation "Ibexa\Bundle\Migration\Serializer\Normalizer\Step\ReferenceLoadStepNormalizer" now to avoid errors or add an explicit @return annotation to suppress this message.