mirror of
https://github.com/openvk/openvk
synced 2024-12-23 00:51:03 +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;
|
return $poll;
|
||||||
}
|
}
|
||||||
|
|
||||||
function save(): void
|
function save(?bool $log = false): void
|
||||||
{
|
{
|
||||||
if(empty($this->choicesToPersist))
|
if(empty($this->choicesToPersist))
|
||||||
throw new InvalidStateException;
|
throw new InvalidStateException;
|
||||||
|
|
||||||
parent::save();
|
parent::save($log);
|
||||||
foreach($this->choicesToPersist as $option) {
|
foreach($this->choicesToPersist as $option) {
|
||||||
DatabaseConnection::i()->getContext()->table("poll_options")->insert([
|
DatabaseConnection::i()->getContext()->table("poll_options")->insert([
|
||||||
"poll" => $this->getId(),
|
"poll" => $this->getId(),
|
||||||
|
|
Loading…
Reference in a new issue