Skip to content

Commit 20c3e4e

Browse files
committed
psalm and changelog
Signed-off-by: dartcafe <github@dartcafe.de>
1 parent 77fdd7c commit 20c3e4e

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ All notable changes to this project will be documented in this file.
2424
- Delete polls without the need to archive them first
2525
- Collapsible poll description
2626
- Transfer polls to another owner by the current poll owner or the administration
27+
- Added reference provider for link previews
2728

2829
## [7.4.1] - 2024-03-07
2930
### New

lib/Reference/PollReferenceProvider.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121

2222
class PollReferenceProvider implements IReferenceProvider {
2323

24+
/** @psalm-suppress PossiblyUnusedMethod */
2425
public function __construct(
2526
private PollService $pollService,
2627
private IURLGenerator $urlGenerator,
@@ -118,7 +119,7 @@ public function resolveReference(string $referenceText): ?IReference {
118119

119120
public function getCachePrefix(string $referenceId): string {
120121
$pollId = $this->extractPollId($referenceId);
121-
if ($pollId !== null) {
122+
if ($pollId !== 0) {
122123
return (string)$pollId;
123124
}
124125

0 commit comments

Comments
 (0)