diff --git a/src/Model/Edit.php b/src/Model/Edit.php index aeef2b2d3..2117eb679 100644 --- a/src/Model/Edit.php +++ b/src/Model/Edit.php @@ -71,7 +71,7 @@ public function __construct(EditRepository $repository, UserRepository $userRepo $this->timestamp = DateTime::createFromFormat('YmdHis', $attrs['timestamp']); } - $this->deleted = $attrs['rev_deleted'] ?? 0; + $this->deleted = (int)($attrs['rev_deleted'] ?? 0); if (($this->deleted & self::DELETED_USER) || ($this->deleted & self::DELETED_RESTRICTED)) { $this->user = null;