Skip to content

Commit 6c8ab8e

Browse files
[PhpUnitBridge] fix undefined variables
1 parent 8aa3e35 commit 6c8ab8e

File tree

1 file changed

+2
-21
lines changed

1 file changed

+2
-21
lines changed

DeprecationErrorHandler/Deprecation.php

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -27,29 +27,10 @@ class Deprecation
2727
const TYPE_INDIRECT = 'type_indirect';
2828
const TYPE_UNDETERMINED = 'type_undetermined';
2929

30-
/**
31-
* @var array
32-
*/
33-
private $trace;
34-
35-
/**
36-
* @var string
37-
*/
30+
private $trace = [];
3831
private $message;
39-
40-
/**
41-
* @var ?string
42-
*/
4332
private $originClass;
44-
45-
/**
46-
* @var ?string
47-
*/
4833
private $originMethod;
49-
50-
/**
51-
* @var string
52-
*/
5334
private $triggeringFile;
5435

5536
/** @var string[] Absolute paths to vendor directories */
@@ -264,7 +245,7 @@ private function getPackage($path)
264245
private static function getVendors()
265246
{
266247
if (null === self::$vendors) {
267-
self::$vendors = [];
248+
self::$vendors = $paths = [];
268249
foreach (get_declared_classes() as $class) {
269250
if ('C' === $class[0] && 0 === strpos($class, 'ComposerAutoloaderInit')) {
270251
$r = new \ReflectionClass($class);

0 commit comments

Comments
 (0)