[PhpUnitBridge] Fix qualification of deprecations triggered by the debug class loader

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/38597/3e99e00538bfaa0a11f041181bf43114b90c017b/cs.diff | patch -p0
diff -ru src/Symfony/Bridge/PhpUnit/DeprecationErrorHandler/Deprecation.php src/Symfony/Bridge/PhpUnit/DeprecationErrorHandler/Deprecation.php
--- src/Symfony/Bridge/PhpUnit/DeprecationErrorHandler/Deprecation.php	2020-10-16 10:23:22.155929369 +0000
+++ src/Symfony/Bridge/PhpUnit/DeprecationErrorHandler/Deprecation.php	2020-10-16 10:23:22.982930952 +0000
@@ -279,7 +279,7 @@
             foreach (get_declared_classes() as $class) {
                 if ('C' === $class[0] && 0 === strpos($class, 'ComposerAutoloaderInit')) {
                     $r = new \ReflectionClass($class);
-                    $v = \dirname(\dirname($r->getFileName()));
+                    $v = \dirname($r->getFileName(), 2);
                     if (file_exists($v.'/composer/installed.json')) {
                         self::$vendors[] = $v;
                         $loader = require $v.'/autoload.php';

0
Common Typos

0
License Headers

0
Pull Request Contributor Headers

0
File Permissions

0
Merge Commits

0
Exception Messages Formatting