Commit Graph

12 Commits

Author SHA1 Message Date
wn_ f097c5ed97 Remove an unnecessary session UID existence check in 'UserHelper::authenticate()'.
PHPStan 'if.alwaysTrue'
2025-04-27 15:13:15 +00:00
wn_ 7e335de7b8 Get rid of the 'language' session variable.
It had issues (no profile usage, only set at login), so it's cleanest to just replace its one usage with 'Prefs::get()'.
2025-03-04 02:27:28 +00:00
wn_ 9b0baf9b32 Use match expressions in some places. 2024-11-24 13:45:26 +00:00
wn_ abcd0e8ba2 Use native union types in most places. 2024-11-23 17:43:24 +00:00
wn_ 154abc61a0 Eliminate use of deprecated 'get_pref()' and 'set_pref()'. 2024-11-18 21:59:45 +00:00
wn_ dca2ae60a1 Remove some PHPStan ignores and make others rule-specific. 2024-11-12 03:38:45 +00:00
wn_ a784305cc7 Address PHPStan findings as of 2.0.1 2024-11-12 03:15:53 +00:00
Andrew Dolgov b8cbb167d4 enforce lowercase usernames while keeping backwards-compatibility for authentication 2024-08-16 14:28:20 +03:00
wn_ c7cc3c92ba Add and use the 'Sessions' class. 2024-07-11 12:16:00 +00:00
wn_ de00a09538 Make implicit nullable parameters explicitly nullable.
This is to address a deprecation planned for PHP 8.4.

https://wiki.php.net/rfc/deprecate-implicitly-nullable-types
2024-03-26 16:43:39 +00:00
wn_ 8727fb3ba8 Clean up some unused variables.
This is essentially https://gitlab.tt-rss.org/wn/tt-rss/-/commit/1ccc0c8c1af04dd9654b585c6d07e3a75d944a0c without the renames and some other things related to Psalm.
2024-01-08 22:46:13 +00:00
Andrew Dolgov 865ecc8796 move to psr-4 autoloader 2023-10-25 12:55:09 +03:00