File tree Expand file tree Collapse file tree 1 file changed +16
-12
lines changed Expand file tree Collapse file tree 1 file changed +16
-12
lines changed Original file line number Diff line number Diff line change @@ -342,27 +342,31 @@ protected function mergeValues($leftSide, $rightSide)
342
342
* one is same as this->keyAttribute and the other is 'value', then the prototype will be different.
343
343
*
344
344
* For example, assume $this->keyAttribute is 'name' and the value array is as follows:
345
- * array(
345
+ *
346
346
* array(
347
- * 'name' => 'name001',
348
- * 'value' => 'value001'
347
+ * array(
348
+ * 'name' => 'name001',
349
+ * 'value' => 'value001'
350
+ * )
349
351
* )
350
- * )
351
352
*
352
353
* Now, the key is 0 and the child node is:
353
- * array(
354
- * 'name' => 'name001',
355
- * 'value' => 'value001'
356
- * )
354
+ *
355
+ * array(
356
+ * 'name' => 'name001',
357
+ * 'value' => 'value001'
358
+ * )
357
359
*
358
360
* When normalizing the value array, the 'name' element will removed from the child node
359
361
* and its value becomes the new key of the child node:
360
- * array(
361
- * 'name001' => array('value' => 'value001')
362
- * )
362
+ *
363
+ * array(
364
+ * 'name001' => array('value' => 'value001')
365
+ * )
363
366
*
364
367
* Now only 'value' element is left in the child node which can be further simplified into a string:
365
- * array('name001' => 'value001')
368
+ *
369
+ * array('name001' => 'value001')
366
370
*
367
371
* Now, the key becomes 'name001' and the child node becomes 'value001' and
368
372
* the prototype of child node 'name001' should be a ScalarNode instead of an ArrayNode instance.
You can’t perform that action at this time.
0 commit comments