Go to file
Chih-Hsuan Yen 4b61618920
Update php-qrcode and php-settings-container for PHP 8.1
By running the following command after updating composer.json

```
composer update chillerlan/php-qrcode chillerlan/php-settings-container
```

This change fixes a deprecation warning from Preferences ->
Personal data / Authentication -> Authenticator (OTP).

```
Return type of chillerlan\Settings\SettingsContainerAbstract::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
1. vendor/chillerlan/php-settings-container/src/SettingsContainerAbstract.php(19): ttrss_error_handler(Return type of chillerlan\Settings\SettingsContainerAbstract::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice, vendor/chillerlan/php-settings-container/src/SettingsContainerAbstract.php)
2. vendor/composer/ClassLoader.php(571): include(/usr/share/webapps/tt-rss/vendor/chillerlan/php-settings-container/src/SettingsContainerAbstract.php)
3. vendor/composer/ClassLoader.php(428): Composer\Autoload\includeFile(/usr/share/webapps/tt-rss/vendor/composer/../chillerlan/php-settings-container/src/SettingsContainerAbstract.php)
4. vendor/chillerlan/php-qrcode/src/QROptions.php(59): loadClass(chillerlan\Settings\SettingsContainerAbstract)
5. vendor/composer/ClassLoader.php(571): include(/usr/share/webapps/tt-rss/vendor/chillerlan/php-qrcode/src/QROptions.php)
6. vendor/composer/ClassLoader.php(428): Composer\Autoload\includeFile(/usr/share/webapps/tt-rss/vendor/composer/../chillerlan/php-qrcode/src/QROptions.php)
7. vendor/chillerlan/php-qrcode/src/QRCode.php(113): loadClass(chillerlan\QRCode\QROptions)
8. classes/pref/prefs.php(958): __construct()
9. classes/pref/prefs.php(469): _get_otp_qrcode_img()
10. classes/pref/prefs.php(541): index_auth_2fa()
11. backend.php(136): index_auth()
```

The issue is fixed in php-settings-container 2.1.1 [1] Here I use the
latest php-qrcode version for another PHP 8.1 fix [2].

[1] 68bc5019c8 (diff-359c7f7a6d32d9935951e1b0742eb116fb654f4a932c8d40328bb5dcab2fa111L162)
[2] https://github.com/chillerlan/php-qrcode/issues/97
2022-07-12 22:23:48 +03:00
.vscode gulp task: add flatpak node16 sdk to path because it doesn't inherit launch environment 2022-06-05 11:23:01 +03:00
api simplify internal authentication code and bump default algo to SSHA-512 2021-03-01 15:24:18 +03:00
cache remove cache/js (no longer used) 2018-12-04 07:15:53 +03:00
classes Fix MySQL search Queries 2022-07-04 00:17:01 +03:00
feed-icons add feed-icons placeholder index.html 2013-04-11 21:55:17 +04:00
images share: move og:image back to head 2021-03-21 09:35:43 +03:00
include fix be locale label 2022-04-18 13:04:29 +03:00
js feeds-tree: move external onClick dojo/method to PrefFeedTree class 2022-06-06 09:31:37 +03:00
lib various fixes vor php 8.1 compatibility 2022-03-09 00:46:15 +08:00
locale Translated using Weblate (Ukrainian) 2022-06-19 10:42:47 +00:00
lock remove .htaccess files 2016-05-13 09:10:54 +03:00
plugins fix: lower-case remote usernames before validation 2022-07-08 16:31:15 +03:00
plugins.local pluginhost: allow loading user plugins from plugins.local 2015-06-05 17:54:52 +03:00
schema bring back web dbupdate using new migrations system 2021-03-04 09:22:24 +03:00
sql schema: don't use 'create index if not exists' syntax because mysql doesn't support it 2022-06-20 21:49:12 +03:00
templates add digest preview button, also fix a bunch of bugs 2021-03-02 19:21:21 +03:00
templates.local allow overriding built-in templates via templates.local 2020-03-13 14:40:35 +03:00
tests tests: add stub autoloader, add a few more rewrite_relative tests 2022-03-22 14:32:32 +03:00
themes fix rendering of articles with titles containing extremely long words 2022-06-13 14:23:08 +03:00
themes.local support loading themes from themes.local 2015-06-05 18:08:19 +03:00
utils revert all plugin base class related changes to keep compatibility with extant plugins (for the time being) 2021-11-13 19:36:26 +03:00
vendor Update php-qrcode and php-settings-container for PHP 8.1 2022-07-12 22:23:48 +03:00
.editorconfig update editorconfig 2021-03-14 12:49:37 +03:00
.eslintrc.js fix eslint configuration 2021-02-19 07:07:45 +03:00
.gitignore tests: add stub autoloader, add a few more rewrite_relative tests 2022-03-22 14:32:32 +03:00
CONTRIBUTING.md Update 'CONTRIBUTING.md' 2022-05-21 21:21:32 +03:00
COPYING add COPYING 2017-04-22 15:42:34 +03:00
README.md add svg loading indicators 2021-03-16 21:32:44 +03:00
backend.php PHPStan warning fix in 'backend.php'. 2021-11-12 04:53:53 +00:00
composer.json Update php-qrcode and php-settings-container for PHP 8.1 2022-07-12 22:23:48 +03:00
composer.lock Update php-qrcode and php-settings-container for PHP 8.1 2022-07-12 22:23:48 +03:00
config.php-dist add some ;s 2021-02-23 13:36:02 +03:00
gulpfile.js revert back to lower contrast light theme by default, add separate light-high-contrast.less 2021-03-25 20:29:36 +03:00
index.php actions dropdown: add context-sensitive UI layout labels 2022-02-25 18:45:00 +03:00
jsconfig.json unify prefs/main App objects, remove fake classes, use single static App object instead 2020-06-04 22:19:23 +03:00
messages.pot rebase translations 2022-06-05 11:49:50 +03:00
package.json add workaround for gulp4 not updating file timestamps on build 2021-02-04 15:30:28 +03:00
phpstan.neon phpstan: limit concurrency 2022-06-10 17:41:38 +03:00
phpunit.xml add phpunit configuration 2022-03-22 14:34:05 +03:00
prefs.php add two helper account access levels: 2021-11-10 20:44:51 +03:00
public.php move startup checks to Config, set a bunch of @deprecated annotations 2021-03-01 10:20:21 +03:00
update.php UserHelper, CLI: add a method to check user password 2022-06-10 22:16:48 +03:00
update_daemon2.php * add UserHelper methods to manipulate user database (add, modify, delete) 2022-06-10 13:39:00 +03:00

README.md

Tiny Tiny RSS

Web-based news feed aggregator, designed to allow you to read news from any location, while feeling as close to a real desktop application as possible.

http://tt-rss.org

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Copyright (c) 2005 Andrew Dolgov (unless explicitly stated otherwise).