Commit 49628eda authored by Benjamin Franzke's avatar Benjamin Franzke
Browse files

[BUGFIX] Fix type error in t3editor code completion controller

With #96849 t3editor classes have been declared strictly typed.
TemplateService converts keys interpretable as integer into
real integers and therefore any usage with string based
functions need to convert the values to string data type.

Resolves: #96937
Related: #96849
Releases: main
Change-Id: I3672b5d8b5f881e152d795c5ceaebd58226cf86f
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/73571

Tested-by: core-ci's avatarcore-ci <typo3@b13.com>
Tested-by: Nikita Hovratov's avatarNikita Hovratov <nikita.h@live.de>
Tested-by: Oliver Bartsch's avatarOliver Bartsch <bo@cedev.de>
Tested-by: Benjamin Franzke's avatarBenjamin Franzke <bfr@qbus.de>
Reviewed-by: Nikita Hovratov's avatarNikita Hovratov <nikita.h@live.de>
Reviewed-by: Oliver Klee's avatarOliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: Oliver Bartsch's avatarOliver Bartsch <bo@cedev.de>
Reviewed-by: Benjamin Franzke's avatarBenjamin Franzke <bfr@qbus.de>
parent 1fe08278
......@@ -90,6 +90,7 @@ class CodeCompletionController
{
$cleanedTreeBranch = [];
foreach ($treeBranch as $key => $value) {
$key = is_int($key) ? (string)$key : $key;
//type definition or value-assignment
if (substr($key, -1) !== '.') {
if ($value != '') {
......
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