[Debug] Trigger a deprecation for new parameters not defined in sub classes

by @GuilhemN

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/28329/0f784c5803ce81fe6d6ac39a00ce9bc25d33d4c7/cs.diff | patch -p0
diff -ru src/Symfony/Component/Debug/DebugClassLoader.php src/Symfony/Component/Debug/DebugClassLoader.php
--- src/Symfony/Component/Debug/DebugClassLoader.php	2018-09-12 19:29:49.896202423 +0000
+++ src/Symfony/Component/Debug/DebugClassLoader.php	2018-09-12 19:29:51.119146446 +0000
@@ -242,7 +242,7 @@
             foreach (array(
                 'finalMethods' => $parentAndTraits,
                 'internalMethods' => $parentAndTraits,
-                'annotatedParameters' => $parentAndOwnInterfaces // We don't parse traits params
+                'annotatedParameters' => $parentAndOwnInterfaces, // We don't parse traits params
             ) as $property => $uses) {
                 foreach ($uses as $use) {
                     if (isset(self::${$property}[$use])) {
diff -ru src/Symfony/Component/Debug/Tests/Fixtures/SubClassWithAnnotatedParameters.php src/Symfony/Component/Debug/Tests/Fixtures/SubClassWithAnnotatedParameters.php
--- src/Symfony/Component/Debug/Tests/Fixtures/SubClassWithAnnotatedParameters.php	2018-09-12 19:29:50.461176563 +0000
+++ src/Symfony/Component/Debug/Tests/Fixtures/SubClassWithAnnotatedParameters.php	2018-09-12 19:29:51.139145531 +0000
@@ -1,24 +1,24 @@
-<?php
-
-namespace Symfony\Component\Debug\Tests\Fixtures;
-
-class SubClassWithAnnotatedParameters extends ClassWithAnnotatedParameters implements InterfaceWithAnnotatedParameters
-{
-    use TraitWithAnnotatedParameters;
-
-    public function fooMethod(string $foo)
-    {
-    }
-
-    public function barMethod($bar = null)
-    {
-    }
-
-    public function quzMethod()
-    {
-    }
-
-    public function whereAmI()
-    {
-    }
-}
+<?php
+
+namespace Symfony\Component\Debug\Tests\Fixtures;
+
+class SubClassWithAnnotatedParameters extends ClassWithAnnotatedParameters implements InterfaceWithAnnotatedParameters
+{
+    use TraitWithAnnotatedParameters;
+
+    public function fooMethod(string $foo)
+    {
+    }
+
+    public function barMethod($bar = null)
+    {
+    }
+
+    public function quzMethod()
+    {
+    }
+
+    public function whereAmI()
+    {
+    }
+}

0
Common Typos

0
License Headers

0
Pull Request Contributor Headers

0
File Permissions