Commit 6999202a authored by crell's avatar crell Committed by Andreas Fernandez
Browse files

[BUGFIX] Tighten a conditional check in LinkService

Resolves: #97741
Releases: main
Change-Id: Ic346680b2f3fcaf8ffef5f9b9bd1cb903da61e0b
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/74826


Reviewed-by: Oliver Klee's avatarOliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
Reviewed-by: Andreas Fernandez's avatarAndreas Fernandez <a.fernandez@scripting-base.de>
Tested-by: core-ci's avatarcore-ci <typo3@b13.com>
Tested-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
Tested-by: Andreas Fernandez's avatarAndreas Fernandez <a.fernandez@scripting-base.de>
parent 6f84ff52
......@@ -870,11 +870,6 @@ parameters:
count: 1
path: ../../typo3/sysext/core/Classes/LinkHandling/LegacyLinkNotationConverter.php
-
message: "#^Else branch is unreachable because previous condition is always true\\.$#"
count: 1
path: ../../typo3/sysext/core/Classes/LinkHandling/LinkService.php
-
message: "#^Result of \\|\\| is always true\\.$#"
count: 1
......
......@@ -118,7 +118,7 @@ class LinkService implements SingletonInterface
}
$fragment = $urnParsed['fragment'] ?? null;
if (is_object($this->handlers[$type])) {
if (isset($this->handlers[$type])) {
$result = $this->handlers[$type]->resolveHandlerData($data);
$result['type'] = $type;
} else {
......
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