Merge "search: Use self::class instead of __CLASS__ in SearchResultSet"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Wed, 8 Aug 2018 14:56:08 +0000 (14:56 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Wed, 8 Aug 2018 14:56:08 +0000 (14:56 +0000)
includes/search/SearchResultSet.php

index e82779a..14d5c4b 100644 (file)
@@ -81,7 +81,7 @@ class SearchResultSet implements Countable, IteratorAggregate {
         *  results available.
         */
        public function __construct( $containedSyntax = false, $hasMoreResults = false ) {
-               if ( static::class === __CLASS__ ) {
+               if ( static::class === self::class ) {
                        // This class will eventually be abstract. SearchEngine implementations
                        // already have to extend this class anyways to provide the actual
                        // search results.