diff --git a/README.md b/README.md index 8249ee5..9b64242 100644 --- a/README.md +++ b/README.md @@ -10,4 +10,4 @@ Extension for phpBB - Shows a visitor statistic of the current day or a freely s ### History * phpBB 3.2 Extension fork (c) 2018 by LukeWCS * phpBB 3.1 Extension (c) 2015 by Anvar -* phpBB 3.0 modification (c) 2010 by Joas Schilling [nickvergessen] +* phpBB 3.0 Modification (c) 2010 by Joas Schilling [nickvergessen] diff --git a/lf-who-was-here-2_build_changelog.md b/lf-who-was-here-2_build_changelog.md index 4694eba..bc2a61d 100644 --- a/lf-who-was-here-2_build_changelog.md +++ b/lf-who-was-here-2_build_changelog.md @@ -1,8 +1,12 @@ +### 2.2.1 +* Release (2024-12-19) +* Fehlende typisierte Klassen-Eigenschaften beim Controller und Listener definiert. + #### 2.2.1-b1 * PHP: * Code verwendet jetzt 7.4 Features. * Code strikter gestaltet. -* ext.php`/`composer.json` angepasst: +* `ext.php`/`composer.json` angepasst: * PHP: 7.1.3-8.3.x -> 7.4.0-8.4.x * Core: * Wie bei "Limit Multiple Replies" werden Rechte jetzt mit der Wrapper Funktion `update_subarray()` (>=phpBB 3.2.1) eingehängt, wodurch das umständliche Extrahieren und Zurückkopieren der Subarrays `$event['categories']` und `$event['permissions']` entfällt. diff --git a/lf-who-was-here-2_changelog_de.md b/lf-who-was-here-2_changelog_de.md index ff3bc65..a0b01b9 100644 --- a/lf-who-was-here-2_changelog_de.md +++ b/lf-who-was-here-2_changelog_de.md @@ -1,5 +1,5 @@ ### 2.2.1 -(2024-12- / CDB: --) +(2024-12-19 / CDB: --) * Die Voraussetzungen haben sich geändert: * PHP: 7.4.0 - 8.4.x (Bisher: 7.1.3 - 8.3.x) @@ -7,7 +7,7 @@ * Validierungs-Kritik von 2.2.0 berücksichtigt (3/4). ### 2.2.0 -(2024-03-06 / CDB: --) +(2024-03-06 / CDB: 2024-05-13) * Die Unterstützung für phpBB 3.2 wurde aufgegeben, Minimum ist jetzt phpBB 3.3.0. * Rechtesystem: diff --git a/lukewcs/whowashere/composer.json b/lukewcs/whowashere/composer.json index a1e271d..caf1d7e 100644 --- a/lukewcs/whowashere/composer.json +++ b/lukewcs/whowashere/composer.json @@ -3,8 +3,8 @@ "type": "phpbb-extension", "description": "Shows a visitor statistic of the current day or a freely selectable period. It lists both visitors and bots, as well as numbers on visible members, invisible members, bots and guests. In addition, the extension offers a visitor record and is extensively adjustable.", "homepage": "https://www.phpbb.com/customise/db/extension/lf_who_was_here_2/", - "version": "2.2.1-b1", - "time": "2024-12-16", + "version": "2.2.1", + "time": "2024-12-19", "license": "GPL-2.0-only", "authors": [ { diff --git a/lukewcs/whowashere/controller/acp_who_was_here_controller.php b/lukewcs/whowashere/controller/acp_who_was_here_controller.php index 169a181..84e2a74 100644 --- a/lukewcs/whowashere/controller/acp_who_was_here_controller.php +++ b/lukewcs/whowashere/controller/acp_who_was_here_controller.php @@ -14,15 +14,16 @@ class acp_who_was_here_controller { - protected $common; - protected $language; - protected $template; - protected $request; - protected $config; - protected $user; - protected $cache; - protected $ext_manager; - public $u_action; + protected object $common; + protected object $language; + protected object $template; + protected object $request; + protected object $config; + protected object $user; + protected object $cache; + protected object $ext_manager; + + public string $u_action; public function __construct( $common, diff --git a/lukewcs/whowashere/event/listener.php b/lukewcs/whowashere/event/listener.php index 0ecf014..db6e70d 100644 --- a/lukewcs/whowashere/event/listener.php +++ b/lukewcs/whowashere/event/listener.php @@ -16,7 +16,7 @@ class listener implements EventSubscriberInterface { - protected $wwh; + protected object $wwh; public function __construct( \lukewcs\whowashere\core\who_was_here $wwh