aboutsummaryrefslogtreecommitdiffstats
path: root/includes/libs/StatusValue.php
diff options
context:
space:
mode:
authorBartosz Dziewoński <dziewonski@fastmail.fm>2024-07-31 18:47:01 +0200
committerBartosz Dziewoński <dziewonski@fastmail.fm>2024-07-31 19:24:39 +0200
commitc045fa0291778f15c63b9bb73b1b840fe85ef62f (patch)
treec5c55c96deb99704d679a352442ea3c519c0cf8f /includes/libs/StatusValue.php
parent848b9fa281dc561a3af9668ec64e91725c4c0f67 (diff)
downloadmediawikicore-c045fa0291778f15c63b9bb73b1b840fe85ef62f.tar.gz
mediawikicore-c045fa0291778f15c63b9bb73b1b840fe85ef62f.zip
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
Diffstat (limited to 'includes/libs/StatusValue.php')
0 files changed, 0 insertions, 0 deletions