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: Oliver Klee's avatarOliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: Stefan Bürk's avatarStefan Bürk <stefan@buerk.tech>
Reviewed-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: core-ci's avatarcore-ci <typo3@b13.com>
Tested-by: Stefan Bürk's avatarStefan Bürk <stefan@buerk.tech>
Tested-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
parent 6661c354
......@@ -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;
......
Supports Markdown
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