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