Merge "Convert SearchResultSet to typical iteration"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Tue, 12 Jun 2018 19:04:43 +0000 (19:04 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Tue, 12 Jun 2018 19:04:43 +0000 (19:04 +0000)
1  2 
RELEASE-NOTES-1.32

diff --combined RELEASE-NOTES-1.32
@@@ -158,8 -158,6 +158,8 @@@ because of Phabricator reports
    minor change to implement the toggle feature with CSS instead. To restore
    prior functionality, either explicitly load "jquery.mw-jump" in your skin
    or refer to T195256 for details on how to make the same change.
 +* Hook 'EditPageBeforeEditChecks' was removed;
 +  use 'EditPageGetCheckboxesDefinition' instead.
  
  === Deprecations in 1.32 ===
  * Use of a StartProfiler.php file is deprecated in favour of placing
  * The ApiQueryContributions class has been renamed to ApiQueryUserContribs.
  * The XMPInfo, XMPReader, and XMPValidate classes have been deprecated in favor
    of the namespaced classes provided by the wikimedia/xmp-reader library.
+ * SearchResultSet::{next,rewind} are deprecated. Calling code should
+   use foreach on the SearchResultSet, or the extractResults method. Extending
+   code should override extractResults.
+ * Instantiating SearchResultSet directly is deprecated. SearchEngine
+   implementations must subclass SearchResultSet for their purposes.
+ * SearchResult::setExtensionData argument has been changed from accepting an
+   array to accepting a Closure that returns the array when called.
  * Class CryptRand, everything in MWCryptRand except generateHex() and function
    MediaWikiServices::getCryptRand() are deprecated, use random_bytes() to
    generate cryptographically secure random byte sequences.