Skip to content

Commit

Permalink
fixup! Make it possible to strong type Entity properties
Browse files Browse the repository at this point in the history
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
  • Loading branch information
come-nc committed Mar 14, 2023
1 parent ae48079 commit 7127218
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/private/Tags.php
Original file line number Diff line number Diff line change
Expand Up @@ -314,8 +314,8 @@ public function add(string $name) {
]);
return false;
}
$this->logger->debug(__METHOD__ . ' Added an tag with ' . $tag->getId(), ['app' => 'core']);
return $tag->getId();
$this->logger->debug(__METHOD__ . ' Added an tag with ' . ($tag->getId() ?? ''), ['app' => 'core']);
return $tag->getId() ?? false;
}

/**
Expand Down

0 comments on commit 7127218

Please sign in to comment.