diff --git a/src/applications/draft/storage/PhabricatorVersionedDraft.php b/src/applications/draft/storage/PhabricatorVersionedDraft.php index 145f24a3fb..2840a4249c 100644 --- a/src/applications/draft/storage/PhabricatorVersionedDraft.php +++ b/src/applications/draft/storage/PhabricatorVersionedDraft.php @@ -58,7 +58,7 @@ final class PhabricatorVersionedDraft extends PhabricatorDraftDAO { return id(new PhabricatorVersionedDraft()) ->setObjectPHID($object_phid) ->setAuthorPHID($viewer_phid) - ->setVersion($version) + ->setVersion((int)$version) ->save(); }