package and depencies
This commit is contained in:
11
vendor/symfony/var-dumper/Caster/LinkStub.php
vendored
11
vendor/symfony/var-dumper/Caster/LinkStub.php
vendored
@@ -20,17 +20,14 @@ class LinkStub extends ConstStub
|
||||
{
|
||||
public $inVendor = false;
|
||||
|
||||
private static $vendorRoots;
|
||||
private static $composerRoots;
|
||||
private static array $vendorRoots;
|
||||
private static array $composerRoots = [];
|
||||
|
||||
public function __construct(string $label, int $line = 0, string $href = null)
|
||||
{
|
||||
$this->value = $label;
|
||||
|
||||
if (null === $href) {
|
||||
$href = $label;
|
||||
}
|
||||
if (!\is_string($href)) {
|
||||
if (!\is_string($href ??= $label)) {
|
||||
return;
|
||||
}
|
||||
if (str_starts_with($href, 'file://')) {
|
||||
@@ -65,7 +62,7 @@ class LinkStub extends ConstStub
|
||||
|
||||
private function getComposerRoot(string $file, bool &$inVendor)
|
||||
{
|
||||
if (null === self::$vendorRoots) {
|
||||
if (!isset(self::$vendorRoots)) {
|
||||
self::$vendorRoots = [];
|
||||
|
||||
foreach (get_declared_classes() as $class) {
|
||||
|
Reference in New Issue
Block a user