Skip to content

Commit

Permalink
Merge pull request #714 from XWB/deprecated
Browse files Browse the repository at this point in the history
Deprecate CommentExtension::isCommentDeleted
  • Loading branch information
XWB authored Jan 8, 2020
2 parents d2659ed + eb54ab7 commit 925f18a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Changelog
=========

### 2.4.0 (2020-01-08)

* Deprecated the `CommentExtension::isCommentDeleted` method.

### 2.3.3 (2019-11-06)

* Fix: use `Symfony\Contracts\EventDispatcher\Event` if available.
Expand Down
2 changes: 2 additions & 0 deletions Twig/CommentExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ public function getTests()
*/
public function isCommentDeleted(CommentInterface $comment)
{
@trigger_error('The "isCommentDeleted" method is deprecated since version 2.4 and will be removed in 3.0. Use "isCommentInState" instead.', E_USER_DEPRECATED);

return $this->isCommentInState($comment, $comment::STATE_DELETED);
}

Expand Down

0 comments on commit 925f18a

Please sign in to comment.