Loading cfrapi/src/Configurator/Group/Configurator_GroupBase.php +1 −1 Original line number Diff line number Diff line Loading @@ -52,7 +52,7 @@ abstract class Configurator_GroupBase extends Configurator_GroupGrandBase { * @return $this */ public function keySetConfigurator($key, ConfiguratorInterface $configurator, $label) { if ('#' === $key[0]) { if ($key !== '' && is_string($key) && $key[0] === '#') { throw new \InvalidArgumentException("Key '$key' must not begin with '#'."); } $this->configurators[$key] = $configurator; Loading cfrplugin/src/Util/DataUtil.php +1 −1 Original line number Diff line number Diff line Loading @@ -72,7 +72,7 @@ class DataUtil { */ private static function arrayStripDangerousKeysRecursive(array &$data) { foreach ($data as $key => $value) { if ($key !== '' && $key[0] === '#') { if ($key !== '' && is_string($key) && $key[0] === '#') { unset($data[$key]); } elseif (is_array($value)) { Loading Loading
cfrapi/src/Configurator/Group/Configurator_GroupBase.php +1 −1 Original line number Diff line number Diff line Loading @@ -52,7 +52,7 @@ abstract class Configurator_GroupBase extends Configurator_GroupGrandBase { * @return $this */ public function keySetConfigurator($key, ConfiguratorInterface $configurator, $label) { if ('#' === $key[0]) { if ($key !== '' && is_string($key) && $key[0] === '#') { throw new \InvalidArgumentException("Key '$key' must not begin with '#'."); } $this->configurators[$key] = $configurator; Loading
cfrplugin/src/Util/DataUtil.php +1 −1 Original line number Diff line number Diff line Loading @@ -72,7 +72,7 @@ class DataUtil { */ private static function arrayStripDangerousKeysRecursive(array &$data) { foreach ($data as $key => $value) { if ($key !== '' && $key[0] === '#') { if ($key !== '' && is_string($key) && $key[0] === '#') { unset($data[$key]); } elseif (is_array($value)) { Loading