Skip to content

Commit 26fd522

Browse files
hotrushDEVizzent
authored andcommitted
Summary and description support for references
1 parent 82dbfcc commit 26fd522

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/json/JsonReference.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public static function createFromReference(
8787
$jsonReference = new JsonReference();
8888
$jsonReference->_summary = $summary;
8989
$jsonReference->_description = $description;
90-
if (str_contains($referenceURI, '#')) {
90+
if (strpos($referenceURI, '#') !== false) {
9191
list($uri, $fragment) = explode('#', $referenceURI, 2);
9292
$jsonReference->_uri = $uri;
9393
$jsonReference->_pointer = new JsonPointer(rawurldecode($fragment));

0 commit comments

Comments
 (0)