wiki.techinc.nl/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
..
Hook
BotPasswordSessionProvider.php Import InvalidArgumentException at top of the source 2024-05-19 23:57:44 +03:30
CookieSessionProvider.php Import InvalidArgumentException at top of the source 2024-05-19 23:57:44 +03:30
CsrfTokenSet.php
CsrfTokenSetProvider.php
ImmutableSessionProviderWithCookie.php Import InvalidArgumentException at top of the source 2024-05-19 23:57:44 +03:30
MetadataMergeException.php
PHPSessionHandler.php Add namespace to the root classes of ObjectCache 2024-07-10 00:14:54 +03:30
Session.php Use OpenSSL for session secret hashing 2024-05-09 21:58:25 +00:00
SessionBackend.php Add namespace to the root classes of ObjectCache 2024-07-10 00:14:54 +03:30
SessionId.php Add "implements Stringable" to every class with "function __toString()" 2024-06-13 00:23:39 +00:00
SessionInfo.php Add "implements Stringable" to every class with "function __toString()" 2024-06-13 00:23:39 +00:00
SessionManager.php Add namespace to the root classes of ObjectCache 2024-07-10 00:14:54 +03:30
SessionManagerInterface.php
SessionOverflowException.php Import InvalidArgumentException at top of the source 2024-05-19 23:57:44 +03:30
SessionProvider.php Replace gettype() with get_debug_type() in exception messages 2024-07-31 19:24:39 +02:00
SessionProviderInterface.php
Token.php Add "implements Stringable" to every class with "function __toString()" 2024-06-13 00:23:39 +00:00
UserInfo.php Add "implements Stringable" to every class with "function __toString()" 2024-06-13 00:23:39 +00:00