Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
reference url can always fallback to the link itself
Signed-off-by: Julien Veyssier <[email protected]>
  • Loading branch information
Julien Veyssier committed Sep 30, 2022
commit eff783797a5271a4097cce12639408b647c9151b
2 changes: 1 addition & 1 deletion lib/public/Collaboration/Reference/IReference.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public function setUrl(?string $url): void;
/**
* @since 25.0.0
*/
public function getUrl(): ?string;
public function getUrl(): string;

/**
* Set the reference specific rich object representation
Expand Down
4 changes: 2 additions & 2 deletions lib/public/Collaboration/Reference/Reference.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ public function setUrl(?string $url): void {
* @inheritdoc
* @since 25.0.0
*/
public function getUrl(): ?string {
return $this->url;
public function getUrl(): string {
return $this->url ?? $this->reference;
}

/**
Expand Down