From 64892ce978c138fcc339e1bb9e3c4ad8e903037b Mon Sep 17 00:00:00 2001 From: Timo Tijhof Date: Wed, 8 Aug 2018 01:08:37 +0100 Subject: [PATCH] search: Use self::class instead of __CLASS__ in SearchResultSet For ease of understanding, use the same technique for both sides of the comparison. Follows-up c2a308075f. Change-Id: I66475fd4baaa6ab7cd24ad884e9fe01a1cd30d9f --- includes/search/SearchResultSet.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/search/SearchResultSet.php b/includes/search/SearchResultSet.php index e82779ab80..14d5c4bb6d 100644 --- a/includes/search/SearchResultSet.php +++ b/includes/search/SearchResultSet.php @@ -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. -- 2.20.1