Skip to content

Commit

Permalink
Edit: typecast 'rev_deleted' into an int
Browse files Browse the repository at this point in the history
  • Loading branch information
MusikAnimal committed May 1, 2023
1 parent de8df34 commit f22effc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Model/Edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f22effc

Please sign in to comment.