Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Cleaning up deprecated user warnings #2475

@melroy89

Description

@melroy89

Description

Once we migrated to the latest Symfony version (v6.3). We see additional user deprecation notices.

Try to clean-up those deprecations.

Example

Mbin logging, showing the user deprecated calls within the ApiPlatform framework:

[2023-07-12T22:22:15.937396+00:00] php.INFO: User Deprecated: Since symfony/serializer 6.3: "ApiPlatform\Hydra\Serializer\DocumentationNormalizer" should implement "NormalizerInterface::getSupportedTypes(?string $format): array". {"exception":"[object] (ErrorException(code: 0): User Deprecated: Since symfony/serializer 6.3: \"ApiPlatform\\Hydra\\Serializer\\DocumentationNormalizer\" should implement \"NormalizerInterface::getSupportedTypes(?string $format): array\". at /var/www/kbin.melroy.org/html/vendor/symfony/serializer/Serializer.php:278)"} []
[2023-07-12T22:22:15.937425+00:00] php.INFO: User Deprecated: Since symfony/serializer 6.3: "ApiPlatform\Hydra\Serializer\EntrypointNormalizer" should implement "NormalizerInterface::getSupportedTypes(?string $format): array". {"exception":"[object] (ErrorException(code: 0): User Deprecated: Since symfony/serializer 6.3: \"ApiPlatform\\Hydra\\Serializer\\EntrypointNormalizer\" should implement \"NormalizerInterface::getSupportedTypes(?string $format): array\". at /var/www/kbin.melroy.org/html/vendor/symfony/serializer/Serializer.php:278)"} []
[2023-07-12T22:22:15.937449+00:00] php.INFO: User Deprecated: Since symfony/serializer 6.3: "ApiPlatform\Hydra\Serializer\ErrorNormalizer" should implement "NormalizerInterface::getSupportedTypes(?string $format): array". {"exception":"[object] (ErrorException(code: 0): User Deprecated: Since symfony/serializer 6.3: \"ApiPlatform\\Hydra\\Serializer\\ErrorNormalizer\" should implement \"NormalizerInterface::getSupportedTypes(?string $format): array\". at /var/www/kbin.melroy.org/html/vendor/symfony/serializer/Serializer.php:278)"} []
[2023-07-12T22:22:15.937472+00:00] php.INFO: User Deprecated: Since symfony/serializer 6.3: "ApiPlatform\Problem\Serializer\ErrorNormalizer" should implement "NormalizerInterface::getSupportedTypes(?string $format): array". {"exception":"[object] (ErrorException(code: 0): User Deprecated: Since symfony/serializer 6.3: \"ApiPlatform\\Problem\\Serializer\\ErrorNormalizer\" should implement \"NormalizerInterface::getSupportedTypes(?string $format): array\". at /var/www/kbin.melroy.org/html/vendor/symfony/serializer/Serializer.php:278)"} []
[2023-07-12T22:22:15.937497+00:00] php.INFO: User Deprecated: Since symfony/serializer 6.3: "ApiPlatform\JsonLd\Serializer\ItemNormalizer" should implement "NormalizerInterface::getSupportedTypes(?string $format): array". {"exception":"[object] (ErrorException(code: 0): User Deprecated: Since symfony/serializer 6.3: \"ApiPlatform\\JsonLd\\Serializer\\ItemNormalizer\" should implement \"NormalizerInterface::getSupportedTypes(?string $format): array\". at /var/www/kbin.melroy.org/html/vendor/symfony/serializer/Serializer.php:278)"} []
[2023-07-12T22:22:15.937521+00:00] php.INFO: User Deprecated: Since symfony/serializer 6.3: "ApiPlatform\Serializer\ItemNormalizer" should implement "NormalizerInterface::getSupportedTypes(?string $format): array". {"exception":"[object] (ErrorException(code: 0): User Deprecated: Since symfony/serializer 6.3: \"ApiPlatform\\Serializer\\ItemNormalizer\" should implement \"NormalizerInterface::getSupportedTypes(?string $format): array\". at /var/www/kbin.melroy.org/html/vendor/symfony/serializer/Serializer.php:278)"} []

And:

[2023-07-12T22:43:25.787984+00:00] php.INFO: User Deprecated: Since api-platform/core 2.7: The service "ApiPlatform\Core\Bridge\Symfony\Routing\IriConverter" is deprecated, use ApiPlatform\Symfony\Routing\IriConverter instead. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Since api-platform/core 2.7: The service "ApiPlatform\Core\Bridge\Symfony\Routing\IriConverter" is deprecated, use ApiPlatform\Symfony\Routing\IriConverter instead. at /var/www/kbin.melroy.org/html/vendor/api-platform/core/src/Core/Bridge/Symfony/Routing/IriConverter.php:67)"} []

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions