[Routing] Prevent duplicated methods and schemes in Route

by @fancyweb

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/50107/401f703200bc2e8c37f3183bdc93346bd2f2ac22/cs.diff | patch -p0
diff -ru src/Symfony/Component/Routing/Loader/AnnotationClassLoader.php src/Symfony/Component/Routing/Loader/AnnotationClassLoader.php
--- src/Symfony/Component/Routing/Loader/AnnotationClassLoader.php	2023-05-25 15:25:20.925291322 +0000
+++ src/Symfony/Component/Routing/Loader/AnnotationClassLoader.php	2023-05-25 15:25:23.418436587 +0000
@@ -38,13 +38,11 @@
  *      * /
  *     class Blog
  *     {
- *         /**
  *          * @Route("/", name="blog_index")
  *          * /
  *         public function index()
  *         {
  *         }
- *         /**
  *          * @Route("/{id}", name="blog_post", requirements = {"id" = "\d+"})
  *          * /
  *         public function show()

0
Common Typos

0
License Headers

0
Pull Request Contributor Headers

0
File Permissions

0
Merge Commits

0
Exception Messages Formatting

0
Usage of void in test files

0
Use ::class whenever possible

0
Deprecation Messages