Skip to content

Commit 49c5a28

Browse files
hotrushDEVizzent
authored andcommitted
Summary and description support for references
1 parent 21051f6 commit 49c5a28

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/json/JsonReference.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ public static function createFromJson(string $json): JsonReference
5252
}
5353
return static::createFromReference(
5454
$refObject['$ref'],
55-
$refObject['summary'] ?? null,
56-
$refObject['description'] ?? null,
55+
isset($refObject['summary']) ? $refObject['summary'] : null,
56+
isset($refObject['description']) ? $refObject['description'] : null,
5757
);
5858
}
5959

0 commit comments

Comments
 (0)