Skip to content

Commit

Permalink
[BUGFIX] Adjust return value in DeprecatingRequestWrapper
Browse files Browse the repository at this point in the history
With #100567, the return type of the getPageArguments()
method in RequestWrapper and DeprecatingRequestWrapper
was changed to PageArguments, while the actual return value
was only adjusted in the RequestWrapper.

This is now also done in DeprecatingRequestWrapper.

Resolves: #100599
Related: #100567
Releases: main
Change-Id: I678451ccc31b7e3b72ab03bfb6b7ce1c0ba05138
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/78642
Tested-by: Benni Mack <benni@typo3.org>
Reviewed-by: Stefan Bürk <stefan@buerk.tech>
Tested-by: Stefan Bürk <stefan@buerk.tech>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Benni Mack <benni@typo3.org>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: core-ci <typo3@b13.com>
  • Loading branch information
o-ba authored and lolli42 committed Apr 14, 2023
1 parent 1a82095 commit be38ba0
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -135,6 +135,6 @@ public function getPageArguments(): ?PageArguments
' based on the backend user object.',
E_USER_DEPRECATED
);
return $this->request->getAttribute('routing');
return ($routing = $this->request->getAttribute('routing')) instanceof PageArguments ? $routing : null;
}
}

0 comments on commit be38ba0

Please sign in to comment.