Skip to content
Snippets Groups Projects
Commit 25128d45 authored by Peter Kraume's avatar Peter Kraume Committed by Christian Kuhn
Browse files

[BUGFIX] Fix PHP 8.1 warnings in ExtbasePluginEnhancer

Resolves: #98059
Releases: main, 11.5
Change-Id: I078db9039c2f0acb05933fa6a86ca5d73b3fb5d7
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/75337


Reviewed-by: default avatarOliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: default avatarStefan Bürk <stefan@buerk.tech>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarStefan Bürk <stefan@buerk.tech>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
parent 6661c354
Branches
Tags
No related merge requests found
......@@ -200,10 +200,10 @@ class ExtbasePluginEnhancer extends PluginEnhancer
}
$controller = $route->getDefault('_controller');
[$controllerName, $actionName] = explode('::', $controller);
if ($controllerName !== $parameters[$this->namespace]['controller']) {
if (!isset($parameters[$this->namespace]['controller']) || $controllerName !== $parameters[$this->namespace]['controller']) {
return false;
}
if ($actionName !== $parameters[$this->namespace]['action']) {
if (!isset($parameters[$this->namespace]['action']) || $actionName !== $parameters[$this->namespace]['action']) {
return false;
}
return true;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment