Description
Preconditions (*)
- You should have installed Magento 2.3.4 version.
- php version 7.2.
Steps to reproduce (*)
- Add minification settings in config.php file
- Run bin/magento app:config:import
Expected result (*)
- Processing configurations data from configuration file...
- Configuration processed
Actual result (*)
- Import failed: Notice: Array to string conversion in vendor/magento/framework/App/Config/Value.php on line 100
I'm working on Magento version 2.3.4.
It was required by client to add minification settings in config.php file.
After I added them in config.php file . Below are the settings that I added:
'system' => [
'stores' => [
'default' => [
'dev' => [
'css' => [
'minify_files' => '1',
'merge_css_files' => '1'
],
'js' => [
'merge_files' => '1',
'minify_files' => '1',
'enable_js_bundling' => '0'
],
'template' => [
'minify_html' => '1'
]
]
]
]
]
After I run bin/magento app:config:import I get below error:
**Import failed: Notice: Array to string conversion in vendor/magento/framework/App/Config/Value.php on line 100
**
I was assuming that it will process configuration but useless.
After digging into it I found that vendor/magento/framework/App/Config/Value.php::getOldValue() returns array instead of string value against path dev/js/minify_exclude
Below is screenshot that shows result array contains array of three values instead of one string.
Can someone tell me how can i get rid of this issue.
Thanks!