From 5274edaa86fabb13b3ef75777f090339f741633e Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Thu, 19 Sep 2019 19:31:51 +0200 Subject: [PATCH] [PhpUnitBridge] fix undefined variables --- .../DeprecationErrorHandler/Deprecation.php | 23 ++----------------- 1 file changed, 2 insertions(+), 21 deletions(-) diff --git a/src/Symfony/Bridge/PhpUnit/DeprecationErrorHandler/Deprecation.php b/src/Symfony/Bridge/PhpUnit/DeprecationErrorHandler/Deprecation.php index fde0d0efca..44f3512c4d 100644 --- a/src/Symfony/Bridge/PhpUnit/DeprecationErrorHandler/Deprecation.php +++ b/src/Symfony/Bridge/PhpUnit/DeprecationErrorHandler/Deprecation.php @@ -27,29 +27,10 @@ class Deprecation const TYPE_INDIRECT = 'type_indirect'; const TYPE_UNDETERMINED = 'type_undetermined'; - /** - * @var array - */ - private $trace; - - /** - * @var string - */ + private $trace = []; private $message; - - /** - * @var ?string - */ private $originClass; - - /** - * @var ?string - */ private $originMethod; - - /** - * @var string - */ private $triggeringFile; /** @var string[] Absolute paths to vendor directories */ @@ -264,7 +245,7 @@ class Deprecation private static function getVendors() { if (null === self::$vendors) { - self::$vendors = []; + self::$vendors = $paths = []; foreach (get_declared_classes() as $class) { if ('C' === $class[0] && 0 === strpos($class, 'ComposerAutoloaderInit')) { $r = new \ReflectionClass($class);