wiki.techinc.nl/tests/phpunit/includes/deferred
C. Scott Ananian 2429785470 ParserOutput: Rename ::setIndexedPageProperty() to ::setNumericPageProperty()
Before this method name gets baked forever into the 1.42 release, rename
the ParserOutput::setIndexedPageProperty() and ::setUnindexedPageProperty()
methods to ::setNumericPageProperty() and ::setUnsortedPageProperty() to
try to address some confusion about whether the *presence* of the page
property is still indexed (it is!), in contrast to whether there's an
additional "sort key" associated with the *value* assigned to the page
property.

This naming is compatible with the feature request in T357783 to have
the sort key and property value specified independently.  The new
method signature in that case would be:

  ...setSortedPageProperty( string $name, string $value, int|float $sortKey )

Although PHP 8.0 will throw a TypeError if a non-numeric type is coerced
to numeric using `0 + ...`, use an explicit is_numeric check to obtain
the same behavior in PHP 7.x.

Change-Id: Ia94c192c429d0482c58467bed787fd2e0aca052f
2024-04-15 15:13:56 -04:00
..
CdnCacheUpdateTest.php tests: Change $wgCommandLineMode hacks to preventOpportunisticUpdates() 2023-12-12 18:58:57 +00:00
DeferredUpdatesTest.php tests: Use namespaced class names in @covers annotations 2024-01-27 01:11:07 +01:00
LinksDeletionUpdateTest.php Change uses of getDBLoadBalancerFactory() to getConnectionProvider() 2024-01-22 22:27:45 +01:00
LinksUpdateTest.php ParserOutput: Rename ::setIndexedPageProperty() to ::setNumericPageProperty() 2024-04-15 15:13:56 -04:00
RefreshSecondaryDataUpdateTest.php tests: Fix @covers and @coversDefaultClass to have leading \ 2024-02-16 22:43:56 +00:00
SearchUpdateTest.php tests: Use namespaced class names in @covers annotations 2024-01-27 01:11:07 +01:00
SiteStatsUpdateTest.php tests: Fix @covers and @coversDefaultClass to have leading \ 2024-02-16 22:43:56 +00:00