wiki.techinc.nl/includes
Timo Tijhof e506500bf0 language: Improve type hints in MessageCache.php
* Replace is_/throw with native where possible.
* Prefer strict comparisons where possible.
* Remove `@throws` for exceptions that are not meant to be checked
  or caught by callers.
* Make the separateCacheableRows() return hint more precise.

Change-Id: I1c14bb8faaf1b377b6d179d96e18331acff23c5b
2022-07-15 05:37:51 +00:00
..
actions Merge "actions: Add Action::getAuthority and use it" 2022-07-09 10:42:08 +00:00
api ApiQueryImageInfo: Use longhand for 'localonly' in getAllowedParams() 2022-07-15 00:36:42 +01:00
auth Merge "auth: Introduce quick permissions checks for AuthManager" 2022-06-01 23:22:41 +00:00
block block: Create wiki-aware target for autoblocks 2022-07-08 22:59:27 +02:00
cache Stop merging LinkCache select fields with page_title and page_namespace 2022-07-05 22:28:53 +00:00
changes RecentChange: Make join to comment table also straight 2022-06-30 23:38:30 +02:00
changetags ManualLogEntry::getComment() should always return string 2022-07-09 18:58:19 -04:00
collation IcuCollation: Fix some typos and a broken link in a comment 2022-05-21 02:07:42 -04:00
CommentFormatter Get rid of warnings on PHP 8.1 2022-06-13 04:42:20 -04:00
composer
config Use HashConfig to override config variables in phpunit tests 2022-07-07 14:54:06 +10:00
content ManualLogEntry::getComment() should always return string 2022-07-09 18:58:19 -04:00
context Revert "Setup: Promote clearActionName log message to runtime warning" 2022-07-12 10:17:59 +00:00
dao Simplify assertion for false around wiki id and domain id 2022-06-18 09:49:13 +02:00
db deferred: Remove unused $mode of internal tryOpportunisticExecute 2022-06-17 18:57:52 +01:00
debug Do minor code cleanup 2022-06-24 13:52:42 +02:00
deferred Merge "Add support for write new for templatelinks migration" 2022-07-12 14:17:52 +00:00
diff Hard deprecate DifferenceEngine::textDiff 2022-07-08 07:01:05 +00:00
edit ParsoidOutputStash: make storage backend configurable. 2022-06-14 14:11:37 +01:00
editpage Replace deprecated wfReadOnly/wfReadOnlyReason 2022-06-20 15:35:24 +00:00
exception language: Improve type hints in MessageCache.php 2022-07-15 05:37:51 +00:00
export Remove references to legacy page_restrictions field in page table 2022-05-09 11:20:53 +02:00
externalstore Remove ExternalStoreDB::getSlave 2022-06-17 09:40:28 +02:00
filebackend Ensure that strlen() does not get passed a (valid) null 2022-07-12 10:35:39 -04:00
filerepo RepoGroup: Convert time option of findFile to TS_MW 2022-07-09 01:52:52 +02:00
gallery Set alt in galleries, despite caption being visible 2022-06-07 18:20:26 -04:00
historyblob Merge "DiffHistoryBlob: Remove workarounds for old PECL xdiff versions" 2022-06-09 16:14:42 +00:00
Hook TempUser CentralAuth integration 2022-05-10 09:06:05 +10:00
HookContainer Various whitespace changes 2022-07-12 20:07:23 +02:00
htmlform Don't attempt to use mParent if it isn't set 2022-07-09 22:24:13 -04:00
http Use MainConfigNames instead of string literals, #3 2022-04-26 14:31:26 +03:00
import import: UploadSourceAdapter::stream_read() don't pass null to strlen() 2022-07-09 23:24:29 +00:00
installer Improve wording of a few templatelinks migration messages 2022-07-12 20:53:24 -04:00
interwiki
jobqueue Merge "Ensure we don't pass null to mb_strlen." 2022-07-12 14:30:36 +00:00
json Add return type to jsonSerialize() 2022-07-02 15:34:02 +00:00
language language: Improve type hints in MessageCache.php 2022-07-15 05:37:51 +00:00
languages Add Campidanese Sardinian (sro) to Names.php 2022-07-01 13:12:40 +00:00
libs Merge "objectcache: Accelerate async memcached writes with "noreply"" 2022-07-14 23:27:43 +00:00
linkeddata
linker Add support for write new for templatelinks migration 2022-07-12 14:46:54 +02:00
logging ManualLogEntry::getComment() should always return string 2022-07-09 18:58:19 -04:00
mail notifications: prevent log spam when invalid user object listed. 2022-05-22 11:02:47 +00:00
media Hard deprecate FormatMetadata::flattenArrayContentLang 2022-07-08 07:01:10 +00:00
Message
Navigation
objectcache PHPUnit: introduce setMainCache 2022-07-07 16:25:59 +10:00
page Merge "Remove index detection 'rev_page_timestamp'" 2022-07-03 17:27:35 +00:00
pager IndexPager: Wrap inactive paging links in <span class="…"> 2022-05-23 19:36:50 +00:00
ParamValidator/TypeDef Fix many typos in comments 2022-05-10 12:46:11 +00:00
parser Various whitespace changes 2022-07-12 20:07:23 +02:00
password Use MainConfigNames instead of string literals, #4 2022-04-26 19:03:37 +03:00
Permissions Fix typos 2022-06-30 09:44:00 +10:00
poolcounter poolcounter: Avoid calling parent::doWork in PoolWorkArticleView classes 2022-05-13 20:36:25 +00:00
preferences Deprecate Parser::getFreshParser() 2022-07-05 14:09:36 +10:00
profiler profiler: Remove deprecated 'trace' feature in SectionProfiler 2022-04-29 11:18:50 +00:00
rcfeed Use MainConfigNames instead of string literals, #4 2022-04-26 19:03:37 +03:00
registration Collect autoloader info in ExtensionProcessor 2022-06-07 17:39:00 +02:00
ResourceLoader Merge "tests: Remove intermediary suites concept from /tests/qunit" 2022-07-13 20:00:00 +00:00
Rest REST: introduce getPrivateRouteUrl 2022-07-14 13:12:35 +00:00
Revision Do minor code cleanup 2022-06-24 13:52:42 +02:00
revisiondelete Call IContextSource::getAuthority instead of IContextSource::getUser 2022-06-29 22:22:44 +02:00
revisionlist Get rid of warnings on PHP 8.1 2022-06-13 04:42:20 -04:00
search Start catch blocks on the same line as the preceding } 2022-06-23 00:22:35 +00:00
session Use GrantsInfo and GrantsLocalization instead of MWGrants 2022-07-10 11:49:15 +00:00
Settings Settings: Remove unstable markers and mark interfaces appropriately 2022-07-11 13:32:11 +01:00
shell ShellboxClientFactory::getUrl(): Check if $this->key is null 2022-06-28 22:25:00 +01:00
site site: Consistently return null from Site::getDomain() 2022-07-06 19:07:01 +00:00
skins Hooks: Use more meaningful name for SkinAfterPortlet hook parameter 2022-07-13 22:07:44 +00:00
sparql
specialpage Remove @deprecated from SpecialPage 2022-07-11 19:51:54 +02:00
specials SpecialRecentChangesLinked: Only add the second join if it's read new 2022-07-14 14:21:17 +02:00
Storage Add return type to jsonSerialize() 2022-07-02 15:34:02 +00:00
templates
tidy Do minor code cleanup 2022-06-24 13:52:42 +02:00
title Use MainConfigNames instead of string literals, #3 2022-04-26 14:31:26 +03:00
upload UploadBase::setTempFile() handle $tempPath being passed as null 2022-07-01 14:34:49 +00:00
user Merge "Extract RateLimiter from User" 2022-06-28 06:19:17 +00:00
utils Get rid of warnings on PHP 8.1 2022-06-13 04:42:20 -04:00
watcheditem Fix many typos in comments 2022-05-10 12:46:11 +00:00
watchlist Merge "Use User::isRegistered for readability instead of ::getId falsy check" 2022-05-23 04:06:10 +00:00
widget Support namespace dropdown 'in-user-lang' option in HTMLForm and OOUI widget 2022-05-13 20:29:44 +00:00
xml Fix many typos in comments 2022-05-10 12:46:11 +00:00
.htaccess
ActorMigration.php
ActorMigrationBase.php Use User::isRegistered for readability instead of ::getId falsy check 2022-04-29 21:15:57 +02:00
AutoLoader.php Merge "Collect autoloader info in ExtensionProcessor" 2022-06-08 06:11:58 +00:00
BadFileLookup.php
BootstrapHelperFunctions.php Setup.php: clarify the use of $IP. 2022-05-03 11:53:05 +02:00
CategoriesRdf.php
Category.php Category: Migrate to use SelectQueryBuilder in ::getMembers 2022-07-07 07:50:43 +00:00
CategoryViewer.php Stop merging LinkCache select fields with page_title and page_namespace 2022-07-05 22:28:53 +00:00
CommentStore.php
CommentStoreComment.php
config-merge-strategies.php Turn DefaultSettings.php into a deprecated stub 2022-05-17 16:50:56 +02:00
config-schema.php Merge "Add support for write new for templatelinks migration" 2022-07-12 14:17:52 +00:00
config-vars.php Introduce new WRStats library for write-read stats 2022-07-05 10:35:19 +10:00
ConfiguredReadOnlyMode.php Use type hints in ReadOnlyMode/ConfiguredReadOnlyMode and improve docs 2022-06-20 19:49:51 +02:00
ContentSecurityPolicy.php Use MainConfigNames instead of string literals, #4 2022-04-26 19:03:37 +03:00
DefaultSettings.php Turn DefaultSettings.php into a deprecated stub 2022-05-17 16:50:56 +02:00
Defines.php PHPUnit: introduce setMainCache 2022-07-07 16:25:59 +10:00
DeprecatedGlobal.php
DerivativeRequest.php
DevelopmentSettings.php
DummyLinker.php
EditPage.php Don't throw away user's text when rate limit is exceeded 2022-07-12 12:15:12 +10:00
Emptiable.php
EventRelayerGroup.php
ExtensionInfo.php
FauxRequest.php
FauxRequestUpload.php
FauxResponse.php
FeedUtils.php
FileDeleteForm.php
ForeignResourceManager.php
ForkController.php Hard deprecate JobQueueGroup::singleton()/destroySingletons() 2022-06-24 18:48:31 +02:00
FormOptions.php
GitInfo.php GitInfo: simplify and prepare for converting to a service 2022-06-30 00:09:48 +00:00
GlobalFunctions.php Handle null passed to wfShorthandToInteger() and Html::element() 2022-07-12 13:21:18 +00:00
HeaderCallback.php
Hooks.php
Html.php Handle null passed to wfShorthandToInteger() and Html::element() 2022-07-12 13:21:18 +00:00
HtmlHelper.php Add HtmlHelper::modifyElements() for small HTML modifications 2022-05-08 15:55:00 +02:00
Linker.php Merge "Remove index detection 'rev_page_timestamp'" 2022-07-03 17:27:35 +00:00
LinkFilter.php Fix many typos in comments 2022-05-10 12:46:11 +00:00
ListToggle.php
MagicWord.php
MagicWordArray.php
MagicWordFactory.php Add {{=}} as a built-in magic word 2022-05-20 13:08:20 -04:00
MainConfigNames.php Introduce new WRStats library for write-read stats 2022-07-05 10:35:19 +10:00
MainConfigNames.template
MainConfigSchema.php tests: Remove intermediary suites concept from /tests/qunit 2022-07-13 01:52:57 +00:00
MediaWiki.php Revert "Setup: Promote clearActionName log message to runtime warning" 2022-07-12 10:17:59 +00:00
MediaWikiServices.php Merge "Deprecate Parser::getFreshParser()" 2022-07-05 04:53:47 +00:00
MediaWikiVersionFetcher.php
MergeHistory.php Start clean up of revision_actor_temp table 2022-05-23 15:37:42 +00:00
MovePage.php Use MainConfigNames instead of string literals, #4 2022-04-26 19:03:37 +03:00
MWGrants.php Hard deprecated the MWGrants class 2022-07-11 17:10:36 +00:00
MWTimestamp.php Hard-deprecate MWTimestamp::getHumanTimestamp 2022-06-20 02:20:25 +00:00
NoLocalSettings.php
OrderedStreamingForkController.php
OutputHandler.php
OutputPage.php Stop merging LinkCache select fields with page_title and page_namespace 2022-07-05 22:28:53 +00:00
PageProps.php
PathRouter.php
PHPVersionCheck.php
Pingback.php
ProtectionForm.php Replace deprecated wfReadOnly/wfReadOnlyReason 2022-06-20 15:35:24 +00:00
ProxyLookup.php
RawMessage.php
ReadOnlyMode.php Use type hints in ReadOnlyMode/ConfiguredReadOnlyMode and improve docs 2022-06-20 19:49:51 +02:00
ServiceWiring.php MessageCache style updates 2022-07-15 00:03:58 +00:00
Setup.php Dynamic defaults: fix $wgLocaltimezone being empty 2022-07-09 18:59:32 +02:00
SetupDynamicConfig.php Dynamic defaults: fix $wgLocaltimezone being empty 2022-07-09 18:59:32 +02:00
SiteConfiguration.php Use str_starts_with/str_ends_with 2022-05-02 10:59:58 +03:00
SiteStats.php Various whitespace changes 2022-07-12 20:07:23 +02:00
SiteStatsInit.php
Status.php ResourceLoader namespace (attempt 2) 2022-05-24 15:41:46 +00:00
StreamFile.php
StubGlobalUser.php
StubObject.php
StubUserLang.php
TemplateParser.php Fix many typos in comments 2022-05-10 12:46:11 +00:00
TemplatesOnThisPageFormatter.php TemplatesOnThisPageFormatter: Use PageIdentity 2022-05-23 19:38:40 +02:00
Title.php Hard deprecate Title::getNotificationTimestamp 2022-06-25 20:12:21 +02:00
TitleArray.php
TitleArrayFromResult.php Get rid of warnings on PHP 8.1 2022-06-13 04:42:20 -04:00
TitleFactory.php
TrackingCategories.php Add {{=}} as a built-in magic word 2022-05-20 13:08:20 -04:00
WebRequest.php Remove WebRequest::checkUrlExtension 2022-06-20 12:07:16 +02:00
WebRequestUpload.php
WebResponse.php
WebStart.php Setup.php: Remove internal use of $IP 2022-05-13 16:32:09 +00:00
WikiMap.php Fix many typos in comments 2022-05-10 12:46:11 +00:00
WikiReference.php