From: Timo Tijhof Date: Wed, 8 Aug 2018 00:08:37 +0000 (+0100) Subject: search: Use self::class instead of __CLASS__ in SearchResultSet X-Git-Tag: 1.34.0-rc.0~4522^2 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/%7B%7B%20url_for%28%27admin_users%27%29%20%7D%7D?a=commitdiff_plain;h=64892ce978c138fcc339e1bb9e3c4ad8e903037b;p=lhc%2Fweb%2Fwiklou.git 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 --- 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.