From 2fd1267aed305188f2f0ba29a534c33f70485efd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Chris=20M=C3=BCller?= <2566282+brotkrueml@users.noreply.github.com> Date: Fri, 26 Jan 2024 16:42:26 +0100 Subject: [PATCH 1/2] [TASK] Add return type to BackendController->initializeAction() This is necessary to be compatible with TYPO3 v13. Related: https://github.com/TYPO3-Documentation/Changelog-To-Doc/issues/810 Releases: main --- CHANGELOG.md | 9 +-------- Classes/Controller/BackendController.php | 2 +- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5fb45a8..96b7d2e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,22 +11,19 @@ This project adheres to [Semantic Versioning](https://semver.org/). ### Changed ### Fixed +- Add return type to `ModuleController->initializeAction()` ### Removed ## 12.0.2 -### Added - ### Changed - The main branch was renamed from `master` to `main` ### Fixed - Fix `Services.yaml` for type converter example (#41) -### Removed - ## 12.0.1 ### Added @@ -34,7 +31,3 @@ This project adheres to [Semantic Versioning](https://semver.org/). ### Changed - Changed the vendor to t3docs (#40) - -### Fixed - -### Removed diff --git a/Classes/Controller/BackendController.php b/Classes/Controller/BackendController.php index abed503..f497161 100644 --- a/Classes/Controller/BackendController.php +++ b/Classes/Controller/BackendController.php @@ -54,7 +54,7 @@ public function __construct( /** * Function will be called before every other action */ - protected function initializeAction() + protected function initializeAction(): void { $this->pageUid = (int)($this->request->getQueryParams()['id'] ?? 0); parent::initializeAction(); From 7d7b357176a3e887cac0aa8f508cfa5502ec2e72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Chris=20M=C3=BCller?= <2566282+brotkrueml@users.noreply.github.com> Date: Fri, 26 Jan 2024 16:43:18 +0100 Subject: [PATCH 2/2] Add PR number to changelog --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 96b7d2e..34bbe88 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,7 +11,7 @@ This project adheres to [Semantic Versioning](https://semver.org/). ### Changed ### Fixed -- Add return type to `ModuleController->initializeAction()` +- Add return type to `ModuleController->initializeAction()` (#74) ### Removed