Skip to content

Commit 1dcc2a9

Browse files
Last poll time is a decimal, so Doctrine uses strings by default when fetching from the database.
The Symfony debug bar complained about this.
1 parent b67412e commit 1dcc2a9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

webapp/src/Entity/ExternalContestSource.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class ExternalContestSource
4747
nullable: true,
4848
options: ['comment' => 'Time of last poll by event feed reader', 'unsigned' => true]
4949
)]
50-
private ?float $lastPollTime = null;
50+
private string|float|null $lastPollTime = null;
5151

5252
#[ORM\Column(
5353
type: 'smallint',
@@ -139,12 +139,12 @@ public function setLastEventId(?string $lastEventId): ExternalContestSource
139139
return $this;
140140
}
141141

142-
public function getLastPollTime(): ?float
142+
public function getLastPollTime(): string|float|null
143143
{
144144
return $this->lastPollTime;
145145
}
146146

147-
public function setLastPollTime(?float $lastPollTime): ExternalContestSource
147+
public function setLastPollTime(string|float|null $lastPollTime): ExternalContestSource
148148
{
149149
$this->lastPollTime = $lastPollTime;
150150
return $this;

0 commit comments

Comments
 (0)