wiki.techinc.nl/includes
Bartosz Dziewoński c045fa0291 Replace gettype() with get_debug_type() in exception messages
get_debug_type() does the same thing but better (spelling type names
in the same way as in type declarations, and including names of
object classes and resource types). It was added in PHP 8, but the
symfony/polyfill-php80 package provides it while we still support 7.4.

Also remove uses of get_class() and get_resource_type() where the new
method already provides the same information.

For reference:
https://www.php.net/manual/en/function.get-debug-type.php
https://www.php.net/manual/en/function.gettype.php

To keep this safe and simple to review, I'm only changing cases where
the type is immediately used in an exception message.

Change-Id: I325efcddcb58be63b1592b9c20ac0845393c15e2
2024-07-31 19:24:39 +02:00
..
actions Namespace MessageSpecifier under Wikimedia\Message\ 2024-07-28 14:21:32 +02:00
api Replace gettype() with get_debug_type() in exception messages 2024-07-31 19:24:39 +02:00
auth Add namespace to the root classes of ObjectCache 2024-07-10 00:14:54 +03:30
block Use real type hints for services etc. in includes/block/ 2024-07-31 08:54:31 +00:00
cache Merge "BacklinkCache: cleanup, use fullResultCache with limit" 2024-07-19 10:36:27 +00:00
Category Add {{#dir}} parser function 2024-07-19 16:57:48 -04:00
changes Replace deprecated LogFormatter::newFromRow/newFromEntry 2024-07-29 22:26:41 +02:00
changetags Replace deprecated LogFormatter::newFromRow/newFromEntry 2024-07-29 22:26:41 +02:00
collation
CommentFormatter Move Linker::makeExternalLink() to the LinkRenderer service 2024-06-10 18:47:32 +00:00
CommentStore Merge "CommentStore: Typehint param in CommentStoreComment constructor" 2024-07-25 13:46:25 +00:00
composer ComposerLaunchParallel: Use Shellbox 2024-07-17 10:33:07 +00:00
config config: Intentionally throw TypeError for unsupported sources 2024-07-24 15:54:41 +00:00
content Merge "[ParsoidParser] Remove unneeded code to set render ID" 2024-07-30 16:54:51 +00:00
context Namespace MessageSpecifier under Wikimedia\Message\ 2024-07-28 14:21:32 +02:00
dao
db Add namespace to the root classes of ObjectCache 2024-07-10 00:14:54 +03:30
debug Use namespaced classes (1) 2024-06-16 20:18:23 +02:00
deferred Use expression builder instead of raw sql 2024-07-23 23:30:45 +02:00
diff diff: migrate TextSlotDiffRenderer to use StatsFactory 2024-06-28 19:29:31 +00:00
edit Add namespace to the root classes of ObjectCache 2024-07-10 00:14:54 +03:30
editpage EditPage, ApiEditPage: Use parantheses to be explicit about order of evaluation 2024-07-29 11:42:24 -04:00
exception Namespace MessageSpecifier under Wikimedia\Message\ 2024-07-28 14:21:32 +02:00
export Modify WikiExporter's BATCH_SIZE from 50000 to 10000 2024-06-25 14:05:05 -04:00
ExternalLinks rdbms: Create IReadableDatabase::andExpr() / ::orExpr() 2024-07-11 15:29:20 +00:00
externalstore
Feed Replace deprecated LogFormatter::newFromRow/newFromEntry 2024-07-29 22:26:41 +02:00
filebackend Add namespace to the root classes of ObjectCache 2024-07-10 00:14:54 +03:30
filerepo Replace deprecated LogFormatter::newFromRow/newFromEntry 2024-07-29 22:26:41 +02:00
gallery
historyblob
Hook
HookContainer Introduce hook to preserve query params after authentication 2024-07-08 13:37:54 +02:00
Html Add namespace to the root classes of ObjectCache 2024-07-10 00:14:54 +03:30
htmlform Replace gettype() with get_debug_type() in exception messages 2024-07-31 19:24:39 +02:00
http
import Replace User, Title, and WikiPage in more signatures 2024-07-10 01:25:57 +02:00
installer Localisation updates from https://translatewiki.net. 2024-07-30 09:06:14 +02:00
interwiki tests: Avoid usage of deprecated setContentLang() 2024-07-19 17:28:39 +02:00
jobqueue Replace gettype() with get_debug_type() in exception messages 2024-07-31 19:24:39 +02:00
json Replace gettype() with get_debug_type() in exception messages 2024-07-31 19:24:39 +02:00
language Namespace MessageSpecifier under Wikimedia\Message\ 2024-07-28 14:21:32 +02:00
languages Merge "Languages: Add nan-latn-pehoeji (Minnan - Pe̍h-ōe-jī) to Names.php" 2024-07-29 09:16:52 +00:00
libs Replace gettype() with get_debug_type() in exception messages 2024-07-31 19:24:39 +02:00
linkeddata Fix various version mention for class_alias 2024-07-05 18:39:49 +02:00
linker Add namespace to the root classes of ObjectCache 2024-07-10 00:14:54 +03:30
logging logging: Hard-deprecate LogFormatter::newFromRow/newFromEntry 2024-07-29 20:29:25 +00:00
mail Replace gettype() with get_debug_type() in exception messages 2024-07-31 19:24:39 +02:00
Maintenance Add phpunit:parallel:extensions composer command 2024-07-17 12:32:35 +02:00
media Replace gettype() with get_debug_type() in exception messages 2024-07-31 19:24:39 +02:00
Message Replace gettype() with get_debug_type() in exception messages 2024-07-31 19:24:39 +02:00
Navigation
objectcache objectcache: Update tests that are really for ObjectCacheFactory 2024-07-24 02:57:23 +00:00
Output Merge "OutputPage: Inline getCdnCacheEpoch() into checkLastModified()" 2024-07-29 14:03:12 +00:00
OutputTransform HandleParsoidSectionLinks: also run this pass if COLLAPSABLE_SECTIONS 2024-07-30 17:22:55 -04:00
page Replace deprecated LogFormatter::newFromRow/newFromEntry 2024-07-29 22:26:41 +02:00
pager pager: Simplify namespace condition from pagers 2024-07-17 23:15:34 +02:00
ParamValidator/TypeDef Merge "REST: avoid crash on non-strings in request body" 2024-07-18 19:27:51 +00:00
parser Merge "Make {{#language}} consistent with {{#dir}} and {{#bcp47}}" 2024-07-31 11:42:16 +00:00
password
Permissions Use real type hints for services etc. in includes/Permissions/ 2024-07-31 08:56:17 +00:00
poolcounter Fix various version mention for class_alias 2024-07-05 18:39:49 +02:00
preferences Extract LintErrorChecker out of SignatureValidator 2024-07-29 14:35:40 -04:00
profiler
rcfeed
registration Add OutputPipelineStages from extensions 2024-07-25 11:44:17 -04:00
RenameUser
Request Request: Docs should be in line with property typehint 2024-07-24 13:20:41 +02:00
ResourceLoader Replace gettype() with get_debug_type() in exception messages 2024-07-31 19:24:39 +02:00
Rest Replace gettype() with get_debug_type() in exception messages 2024-07-31 19:24:39 +02:00
Revision Use expression builder instead of raw sql 2024-07-23 23:30:45 +02:00
revisiondelete Replace deprecated LogFormatter::newFromRow/newFromEntry 2024-07-29 22:26:41 +02:00
revisionlist
search Replace gettype() with get_debug_type() in exception messages 2024-07-31 19:24:39 +02:00
session Replace gettype() with get_debug_type() in exception messages 2024-07-31 19:24:39 +02:00
Settings Add namespace to the root classes of ObjectCache 2024-07-10 00:14:54 +03:30
shell Add "implements/extends Stringable" to more classes and interfaces 2024-06-13 16:06:14 +02:00
site site: Streamline Site class using modern PHP features 2024-07-18 15:38:01 +02:00
SiteStats
skins Namespace MessageSpecifier under Wikimedia\Message\ 2024-07-28 14:21:32 +02:00
sparql
specialpage Replace gettype() with get_debug_type() in exception messages 2024-07-31 19:24:39 +02:00
specials Replace deprecated LogFormatter::newFromRow/newFromEntry 2024-07-29 22:26:41 +02:00
Status Namespace MessageSpecifier under Wikimedia\Message\ 2024-07-28 14:21:32 +02:00
Storage Merge "Add namespace to the root classes of ObjectCache" 2024-07-10 11:58:53 +00:00
StubObject Replace gettype() with get_debug_type() in exception messages 2024-07-31 19:24:39 +02:00
templates
tidy
title Replace gettype() with get_debug_type() in exception messages 2024-07-31 19:24:39 +02:00
upload Namespace MessageSpecifier under Wikimedia\Message\ 2024-07-28 14:21:32 +02:00
user Replace gettype() with get_debug_type() in exception messages 2024-07-31 19:24:39 +02:00
utils Add namespace to the root classes of ObjectCache 2024-07-10 00:14:54 +03:30
watchlist WatchlistManager::setWatch: Exit if the user is a temp account 2024-07-26 18:33:54 +00:00
widget Add "implements Stringable" to every class with "function __toString()" 2024-06-13 00:23:39 +00:00
WikiMap Move Linker::makeExternalLink() to the LinkRenderer service 2024-06-10 18:47:32 +00:00
xml Use namespaced classes (1) 2024-06-16 20:18:23 +02:00
.htaccess
AutoLoader.php
BootstrapHelperFunctions.php
config-schema.php api: deprecate and deactivate $wgAPIRequestLog 2024-07-29 14:42:00 +00:00
DefaultSettings.php
Defines.php Add support for user-groups-based conditional options filter 2024-06-29 07:07:06 +00:00
DevelopmentSettings.php DevelopmentSettings: Enable temp user autocreation 2024-07-25 16:43:10 +03:00
EntryPointEnvironment.php
GlobalFunctions.php Namespace MessageSpecifier under Wikimedia\Message\ 2024-07-28 14:21:32 +02:00
MainConfigNames.php api: deprecate and deactivate $wgAPIRequestLog 2024-07-29 14:42:00 +00:00
MainConfigSchema.php api: deprecate and deactivate $wgAPIRequestLog 2024-07-29 14:42:00 +00:00
MediaWiki.php
MediaWikiEntryPoint.php Fix use of stale backlink partition cache 2024-06-28 13:16:26 +10:00
MediaWikiServices.php Extract LintErrorChecker out of SignatureValidator 2024-07-29 14:35:40 -04:00
PHPVersionCheck.php
ServiceWiring.php Merge "[ParsoidParser] Remove unneeded code to set render ID" 2024-07-30 16:54:51 +00:00
Setup.php Merge "Use namespaced classes (1)" 2024-06-18 19:32:48 +00:00
SetupDynamicConfig.php Change 'powered by MediaWiki' icon to new version, wrapped in Codex buttons 2024-06-17 14:35:48 -04:00
WebStart.php