Skip to content

Commit 1016890

Browse files
authored
Merge pull request #383 from TysonAndre/source-file-node-nit
Change getUri return type to nullable string
2 parents ba1f1e8 + 8ed21ce commit 1016890

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Node.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ public function getFileContents() : string {
417417
return $this->getRoot()->fileContents;
418418
}
419419

420-
public function getUri() : string {
420+
public function getUri() : ?string {
421421
return $this->getRoot()->uri;
422422
}
423423

src/Node/SourceFileNode.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class SourceFileNode extends Node {
1313
/** @var string */
1414
public $fileContents;
1515

16-
/** @var string */
16+
/** @var ?string */
1717
public $uri;
1818

1919
/** @var Node[] */

0 commit comments

Comments
 (0)