[Serializer] Remove deprecation layer

by @derrabus

Some issues have been detected in this pull request

Issues that can be fixed by applying a patch

Review the proposed patch then download it to apply it manually or execute the following command from the repository root directory:

curl https://fabbot.io/patch/symfony/symfony/41657/40042a6b8a830c40e0ff587f047c1185de4496d5/cs.diff | patch -p0
diff -ru src/Symfony/Component/Serializer/Annotation/Context.php src/Symfony/Component/Serializer/Annotation/Context.php
--- src/Symfony/Component/Serializer/Annotation/Context.php	2021-06-10 17:56:14.215886721 +0000
+++ src/Symfony/Component/Serializer/Annotation/Context.php	2021-06-10 17:56:17.738783087 +0000
@@ -36,7 +36,7 @@
         private array $context = [],
         private array $normalizationContext = [],
         private array $denormalizationContext = [],
-        string|array $groups = []
+        string | array $groups = []
     ) {
         if (!$context && !$normalizationContext && !$denormalizationContext) {
             throw new InvalidArgumentException(sprintf('At least one of the "context", "normalizationContext", or "denormalizationContext" options of annotation "%s" must be provided as a non-empty array.', static::class));
diff -ru src/Symfony/Component/Serializer/Annotation/Groups.php src/Symfony/Component/Serializer/Annotation/Groups.php
--- src/Symfony/Component/Serializer/Annotation/Groups.php	2021-06-10 17:56:14.767870483 +0000
+++ src/Symfony/Component/Serializer/Annotation/Groups.php	2021-06-10 17:56:17.799781292 +0000
@@ -35,7 +35,7 @@
      *
      * @throws InvalidArgumentException
      */
-    public function __construct(string|array $groups)
+    public function __construct(string | array $groups)
     {
         $this->groups = (array) $groups;
 

0
Common Typos

0
License Headers

0
Pull Request Contributor Headers

0
JSON Files Syntax

0
File Permissions

0
Merge Commits

0
Exception Messages Formatting

0
Usage of void in test files

0
Use ::class whenever possible