mirror of
https://github.com/openvk/openvk
synced 2025-04-23 08:33:02 +03:00
Fix PHP 8 compatibility
This commit is contained in:
parent
123bc63441
commit
87fbcc90ee
3 changed files with 5 additions and 5 deletions
|
@ -105,7 +105,7 @@ class IP extends RowModel
|
||||||
$this->stateChanges("ip", $ip);
|
$this->stateChanges("ip", $ip);
|
||||||
}
|
}
|
||||||
|
|
||||||
function save($log): void
|
function save(?bool $log = false): void
|
||||||
{
|
{
|
||||||
if(is_null($this->getRecord()))
|
if(is_null($this->getRecord()))
|
||||||
$this->stateChanges("first_seen", time());
|
$this->stateChanges("first_seen", time());
|
||||||
|
|
|
@ -121,14 +121,14 @@ abstract class Media extends Postable
|
||||||
$this->stateChanges("hash", $hash);
|
$this->stateChanges("hash", $hash);
|
||||||
}
|
}
|
||||||
|
|
||||||
function save(): void
|
function save(?bool $log = false): void
|
||||||
{
|
{
|
||||||
if(!is_null($this->processingPlaceholder) && is_null($this->getRecord())) {
|
if(!is_null($this->processingPlaceholder) && is_null($this->getRecord())) {
|
||||||
$this->stateChanges("processed", 0);
|
$this->stateChanges("processed", 0);
|
||||||
$this->stateChanges("last_checked", time());
|
$this->stateChanges("last_checked", time());
|
||||||
}
|
}
|
||||||
|
|
||||||
parent::save();
|
parent::save($log);
|
||||||
}
|
}
|
||||||
|
|
||||||
function delete(bool $softly = true): void
|
function delete(bool $softly = true): void
|
||||||
|
|
|
@ -152,7 +152,7 @@ abstract class Postable extends Attachable
|
||||||
throw new ISE("Setting virtual id manually is forbidden");
|
throw new ISE("Setting virtual id manually is forbidden");
|
||||||
}
|
}
|
||||||
|
|
||||||
function save(): void
|
function save(?bool $log = false): void
|
||||||
{
|
{
|
||||||
$vref = $this->upperNodeReferenceColumnName;
|
$vref = $this->upperNodeReferenceColumnName;
|
||||||
|
|
||||||
|
@ -171,7 +171,7 @@ abstract class Postable extends Attachable
|
||||||
$this->stateChanges("edited", time());
|
$this->stateChanges("edited", time());
|
||||||
}*/
|
}*/
|
||||||
|
|
||||||
parent::save();
|
parent::save($log);
|
||||||
}
|
}
|
||||||
|
|
||||||
use Traits\TAttachmentHost;
|
use Traits\TAttachmentHost;
|
||||||
|
|
Loading…
Reference in a new issue