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

Tested-by: core-ci's avatarcore-ci <>
Tested-by: Nikita Hovratov's avatarNikita Hovratov <>
Tested-by: Oliver Bartsch's avatarOliver Bartsch <>
Tested-by: Benjamin Franzke's avatarBenjamin Franzke <>
Reviewed-by: Nikita Hovratov's avatarNikita Hovratov <>
Reviewed-by: Oliver Klee's avatarOliver Klee <>
Reviewed-by: Oliver Bartsch's avatarOliver Bartsch <>
Reviewed-by: Benjamin Franzke's avatarBenjamin Franzke <>
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