wiki.techinc.nl/includes/debug/logger
Bartosz Dziewoński df4cbf5ac6 Replace gettype() with get_debug_type() in debug/log/test output
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

In this commit I'm only changing code where it looks like the result
is used only for some king of debug, log, or test output. This
probably won't break anything important, but I'm not sure whether
anything might depend on the exact values.

Change-Id: I7c1f0a8f669228643e86f8e511c0e26a2edb2948
2024-07-31 19:33:57 +02:00
..
monolog Replace deprecated WebRequest::getRequestId() with Telemetry 2024-01-19 10:32:45 +00:00
ConsoleLogger.php debug: Improve docs, fix ingroup tags, clean up tests 2023-10-05 11:54:30 +00:00
ConsoleSpi.php debug: Improve docs, fix ingroup tags, clean up tests 2023-10-05 11:54:30 +00:00
LegacyLogger.php Replace gettype() with get_debug_type() in debug/log/test output 2024-07-31 19:33:57 +02:00
LegacySpi.php debug: Improve docs, fix ingroup tags, clean up tests 2023-10-05 11:54:30 +00:00
LogCapturingSpi.php debug: Improve docs, fix ingroup tags, clean up tests 2023-10-05 11:54:30 +00:00
LoggerFactory.php debug: Improve docs, fix ingroup tags, clean up tests 2023-10-05 11:54:30 +00:00
MonologSpi.php Add LegacyLogger when $wgShowDebug is true. 2024-02-15 02:26:54 +01:00
NullSpi.php debug: Improve docs, fix ingroup tags, clean up tests 2023-10-05 11:54:30 +00:00
Spi.php typo fixes in inline docs for logger spi module 2023-10-11 11:20:29 +03:00