wiki.techinc.nl/tests/phpunit/includes/session
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
..
BotPasswordSessionProviderTest.php tests: Migrate to IDatabase::newInsertQueryBuilder 2024-04-14 21:56:07 +02:00
CookieSessionProviderTest.php tests: Use namespaced classes (1) 2024-06-14 17:19:36 +00:00
CsrfTokenSetTest.php Remove all @package comments 2024-05-10 13:53:15 +02:00
ImmutableSessionProviderWithCookieTest.php tests: Use namespaced classes (1) 2024-06-14 17:19:36 +00:00
PHPSessionHandlerTest.php
SessionBackendTest.php Add namespace to the root classes of ObjectCache 2024-07-10 00:14:54 +03:30
SessionInfoTest.php
SessionManagerTest.php objectcache: Introduce ObjectCacheFactory MW service 2024-03-19 12:38:39 +03:00
SessionProviderTest.php Replace gettype() with get_debug_type() in exception messages 2024-07-31 19:24:39 +02:00
SessionTest.php
TestBagOStuff.php Add namespace to the root classes of ObjectCache 2024-07-10 00:14:54 +03:30
TestUtils.php
UserInfoTest.php