Skip to content

Commit a64f6c6

Browse files
Merge pull request #390 from N1ebieski:Fix-a-bug-with-Enums-in-config-files-#40
Fix a bug with enums in config files
2 parents 32aa3ff + 803afe5 commit a64f6c6

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

php-templates/configs.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,10 @@ function vsCodeGetConfigValue($value, $key, $configPaths) {
117117
}
118118
}
119119

120+
if (is_object($value)) {
121+
$value = get_class($value);
122+
}
123+
120124
return [
121125
"name" => $key,
122126
"value" => $value,

src/templates/configs.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,10 @@ function vsCodeGetConfigValue($value, $key, $configPaths) {
117117
}
118118
}
119119
120+
if (is_object($value)) {
121+
$value = get_class($value);
122+
}
123+
120124
return [
121125
"name" => $key,
122126
"value" => $value,

0 commit comments

Comments
 (0)