We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 294c5d7 commit 603b46dCopy full SHA for 603b46d
src/Templating/Helper/JsConfig.php
@@ -136,7 +136,7 @@ public function __toString(): string
136
];
137
138
foreach ($this->variables as $index => $varKey) {
139
- if (array_key_exists($varKey, $this->config) && is_countable($this->config[$varKey]) && count($this->config[$varKey]) > 0) {
+ if (is_array($this->config[$varKey] ?? null) && count($this->config[$varKey]) > 0) {
140
$values = $this->config[$varKey];
141
} else {
142
$values = new \stdClass();
0 commit comments