summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'CommentStreams/includes/ApiCSWatch.php')
-rw-r--r--CommentStreams/includes/ApiCSWatch.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/CommentStreams/includes/ApiCSWatch.php b/CommentStreams/includes/ApiCSWatch.php
index a1a67072..8c4e9e8c 100644
--- a/CommentStreams/includes/ApiCSWatch.php
+++ b/CommentStreams/includes/ApiCSWatch.php
@@ -21,6 +21,8 @@
* DEALINGS IN THE SOFTWARE.
*/
+namespace MediaWiki\Extension\CommentStreams;
+
class ApiCSWatch extends ApiCSBase {
/**
@@ -42,7 +44,7 @@ class ApiCSWatch extends ApiCSBase {
'commentstreams-api-error-watch-notloggedin' );
}
- if ( !is_null( $this->comment->getParentId() ) ) {
+ if ( $this->comment->getParentId() !== null ) {
$this->dieCustomUsageMessage(
'commentstreams-api-error-watch-nowatchonreply' );
}