File tree Expand file tree Collapse file tree 1 file changed +2
-21
lines changed
Expand file tree Collapse file tree 1 file changed +2
-21
lines changed Original file line number Diff line number Diff 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 );
You can’t perform that action at this time.
0 commit comments