mirror of
https://github.com/openvk/openvk
synced 2024-12-22 16:42:32 +03:00
PHP 8.2 compatibility fix
This commit is contained in:
parent
2757599492
commit
cd7b51fcf6
1 changed files with 2 additions and 2 deletions
|
@ -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(),
|
||||
|
|
Loading…
Reference in a new issue