pimcore-data-definitions icon indicating copy to clipboard operation
pimcore-data-definitions copied to clipboard

createKey type error when key consist of only digits

Open judip opened this issue 3 years ago • 1 comments
trafficstars

Q A
Bug report? yes
Feature request? no
BC Break report? no
RFC? no
Branch? master

In function createKey() in file Importer.php (line 582) should be convert to string: return (string) $this->expressionLanguage->evaluate(substr($definition->getKey(), 1), $data);

When key consist of only digits is problem because key is not string, but function return type string.

judip avatar Mar 28 '22 12:03 judip

please create a pr

dpfaffenbauer avatar Jul 20 '22 14:07 dpfaffenbauer