Skip to content

Commit 65a97ab

Browse files
author
Igor Chepurnoy
authored
Update README.md
1 parent e3562bf commit 65a97ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,13 +110,13 @@ class CommentModel extends ActiveRecord
110110

111111
public function setStatus(PostStatus $status)
112112
{
113-
$this->status = $status;
113+
$this->status = $status->getValue();
114114
}
115115

116116
public function getStatus()
117117
{
118118
if (!$this->status) {
119-
$this->status = PostStatus::PENDING();
119+
$this->status = PostStatus::PENDING;
120120
}
121121
return $this->status;
122122
}

0 commit comments

Comments
 (0)