Fix Subrequests unit tests Deprecations

Created on 18 May 2023, over 1 year ago
Updated 27 June 2024, 5 months ago

Problem/Motivation

1x: Method "Symfony\Component\Serializer\Normalizer\DenormalizerInterface::denormalize()" might add "mixed" as a native return type declaration in the future. Do the same in implementation "Drupal\subrequests\Normalizer\JsonBlueprintDenormalizer" now to avoid errors or add an explicit @return annotation to suppress this message.
1x in BlueprintManagerTest::setUp from Drupal\Tests\subrequests\Unit\Blueprint

1x: The "Drupal\subrequests\Normalizer\JsonBlueprintDenormalizer::supportsDenormalization()" method will require a new "array $context" argument in the next major version of its interface "Symfony\Component\Serializer\Normalizer\DenormalizerInterface", not defining it is deprecated.
1x in BlueprintManagerTest::setUp from Drupal\Tests\subrequests\Unit\Blueprint

1x: Method "Symfony\Component\Serializer\Normalizer\DenormalizerInterface::supportsDenormalization()" might add "bool" as a native return type declaration in the future. Do the same in implementation "Drupal\subrequests\Normalizer\JsonBlueprintDenormalizer" now to avoid errors or add an explicit @return annotation to suppress this message.
1x in BlueprintManagerTest::setUp from Drupal\Tests\subrequests\Unit\Blueprint

1x: Method "Symfony\Component\Serializer\Normalizer\NormalizerInterface::normalize()" might add "array|string|int|float|bool|\ArrayObject|null" as a native return type declaration in the future. Do the same in implementation "Drupal\subrequests\Normalizer\MultiresponseNormalizer" now to avoid errors or add an explicit @return annotation to suppress this message.
1x in BlueprintManagerTest::setUp from Drupal\Tests\subrequests\Unit\Blueprint

1x: The "Drupal\subrequests\Normalizer\MultiresponseNormalizer::supportsNormalization()" method will require a new "array $context" argument in the next major version of its interface "Symfony\Component\Serializer\Normalizer\NormalizerInterface", not defining it is deprecated.
1x in BlueprintManagerTest::setUp from Drupal\Tests\subrequests\Unit\Blueprint

1x: Method "Symfony\Component\Serializer\Normalizer\NormalizerInterface::supportsNormalization()" might add "bool" as a native return type declaration in the future. Do the same in implementation "Drupal\subrequests\Normalizer\MultiresponseNormalizer" now to avoid errors or add an explicit @return annotation to suppress this message.
1x in BlueprintManagerTest::setUp from Drupal\Tests\subrequests\Unit\Blueprint

1x: The "Drupal\subrequests\Normalizer\JsonSubrequestDenormalizer::supportsDenormalization()" method will require a new "array $context" argument in the next major version of its interface "Symfony\Component\Serializer\Normalizer\DenormalizerInterface", not defining it is deprecated.
1x in JsonSubrequestDenormalizerTest::setUp from Drupal\Tests\subrequests\Normalizer

1x: Method "Symfony\Component\Serializer\Normalizer\NormalizerInterface::normalize()" might add "array|string|int|float|bool|\ArrayObject|null" as a native return type declaration in the future. Do the same in implementation "Drupal\subrequests\Normalizer\MultiresponseJsonNormalizer" now to avoid errors or add an explicit @return annotation to suppress this message.
1x in MultiresponseJsonNormalizerTest::setUp from Drupal\Tests\subrequests\Normalizer

1x: The "Drupal\subrequests\Normalizer\MultiresponseJsonNormalizer::supportsNormalization()" method will require a new "array $context" argument in the next major version of its interface "Symfony\Component\Serializer\Normalizer\NormalizerInterface", not defining it is deprecated.
1x in MultiresponseJsonNormalizerTest::setUp from Drupal\Tests\subrequests\Normalizer

1x: Method "Symfony\Component\Serializer\Normalizer\NormalizerInterface::supportsNormalization()" might add "bool" as a native return type declaration in the future. Do the same in implementation "Drupal\subrequests\Normalizer\MultiresponseJsonNormalizer" now to avoid errors or add an explicit @return annotation to suppress this message.
1x in MultiresponseJsonNormalizerTest::setUp from Drupal\Tests\subrequests\Normalizer

📌 Task
Status

Closed: duplicate

Version

3.0

Component

Code

Created by

🇮🇳India ankitv18

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024