Skip to content

Commit 7a7ecde

Browse files
committed
MAGETWO-98409: Config:set command failed for path bigger than 3 depth
1 parent 917c9a5 commit 7a7ecde

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/code/Magento/Config/Model/Config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ public function setDataByPath($path, $value)
525525
$keyDepth = count($pathParts);
526526
if ($keyDepth < 3) {
527527
throw new \UnexpectedValueException(
528-
'Minimum depth of configuration is 3. Your configuration depth is ' . $keyDepth . '.'
528+
'Minimal depth of configuration is 3. Your configuration depth is ' . $keyDepth
529529
);
530530
}
531531

app/code/Magento/Config/Test/Unit/Model/ConfigTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ public function testSetDataByPathEmpty()
401401
public function testSetDataByPathWrongDepth(string $path)
402402
{
403403
$currentDepth = count(explode('/', $path));
404-
$expectedException = 'Minimum depth of configuration is 3. Your configuration depth is ' . $currentDepth . '.';
404+
$expectedException = 'Minimal depth of configuration is 3. Your configuration depth is ' . $currentDepth;
405405
$this->expectException(\UnexpectedValueException::class);
406406
$this->expectExceptionMessage($expectedException);
407407
$value = 'value';

0 commit comments

Comments
 (0)