Skip to content

Commit

Permalink
[TASK] Add return type to ModuleController->initializeAction()
Browse files Browse the repository at this point in the history
This is necessary to be compatible with TYPO3 v13.

Related: TYPO3-Documentation/Changelog-To-Doc#810
Releases: main
  • Loading branch information
brotkrueml committed Jan 26, 2024
1 parent f87fe68 commit 6a6111b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ This project adheres to [Semantic Versioning](https://semver.org/).

### Changed
- Use Configuration/user.tsconfig (#214)
- Add return type to `ModuleController->initializeAction()`

### Fixed
- Dynamic properties in ModuleController (#221)
Expand Down
2 changes: 1 addition & 1 deletion Classes/Controller/ModuleController.php
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,7 @@ protected function initializeModuleTemplate(
/**
* Function will be called before every other action
*/
protected function initializeAction()
protected function initializeAction(): void
{
$this->pageUid = (int)($this->request->getQueryParams()['id'] ?? 0);
$this->exampleConfig = $this->extensionConfiguration->get('examples') ?? [];
Expand Down

0 comments on commit 6a6111b

Please sign in to comment.