From cd7b51fcf69e182aeefc46c2f809e03c2bd6fa16 Mon Sep 17 00:00:00 2001 From: veselcraft Date: Sat, 28 Oct 2023 13:23:47 +0300 Subject: [PATCH] PHP 8.2 compatibility fix --- Web/Models/Entities/Poll.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Web/Models/Entities/Poll.php b/Web/Models/Entities/Poll.php index 6f2885b1..7e32505f 100644 --- a/Web/Models/Entities/Poll.php +++ b/Web/Models/Entities/Poll.php @@ -279,12 +279,12 @@ class Poll extends Attachable return $poll; } - function save(): void + function save(?bool $log = false): void { if(empty($this->choicesToPersist)) throw new InvalidStateException; - parent::save(); + parent::save($log); foreach($this->choicesToPersist as $option) { DatabaseConnection::i()->getContext()->table("poll_options")->insert([ "poll" => $this->getId(),