We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6452c46 commit f82ddf5Copy full SHA for f82ddf5
src/AbstractDescriptor.php
@@ -46,7 +46,9 @@ public function __construct(
46
/** @psalm-suppress MixedAssignment */
47
$this->def = $descriptor->def ?? $descriptor->ref ?? $descriptor->src ?? null;
48
49
- $this->doc = $descriptor->doc->value ?? null;
+ $this->doc = (isset($descriptor->doc) && is_object($descriptor->doc) && property_exists($descriptor->doc, 'value'))
50
+ ? $descriptor->doc->value
51
+ : (property_exists($descriptor, 'doc') ? $descriptor->doc : null);
52
53
$this->descriptor = $descriptor->descriptor ?? [];
54
$this->parent = $parentDescriptor;
0 commit comments