"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "vendor/symfony/symfony/src/Symfony/Component/Translation/Util/ArrayConverter.php" between
Zikula_Core-2.0.11.tar.gz and Zikula_Core-2.0.12.tar.gz

About: Zikula is a Flexible Open Source Application Framework and CMS (based on Symfony 3.x).

ArrayConverter.php  (Zikula_Core-2.0.11):ArrayConverter.php  (Zikula_Core-2.0.12)
skipping to change at line 72 skipping to change at line 72
* $tree['foo'] was string before we found array {bar: test2}. * $tree['foo'] was string before we found array {bar: test2}.
* Treat new element as string too, e.g. add $tree['foo.bar'] = 'test2'; * Treat new element as string too, e.g. add $tree['foo.bar'] = 'test2';
*/ */
$elem = &$elem[implode('.', \array_slice($parts, $i))]; $elem = &$elem[implode('.', \array_slice($parts, $i))];
break; break;
} }
$parentOfElem = &$elem; $parentOfElem = &$elem;
$elem = &$elem[$part]; $elem = &$elem[$part];
} }
if (\is_array($elem) && \count($elem) > 0 && $parentOfElem) { if ($elem && \is_array($elem) && $parentOfElem) {
/* Process next case: /* Process next case:
* 'foo.bar': 'test1' * 'foo.bar': 'test1'
* 'foo': 'test2' * 'foo': 'test2'
* *
* $tree['foo'] was array = {bar: 'test1'} before we found string co nstant `foo`. * $tree['foo'] was array = {bar: 'test1'} before we found string co nstant `foo`.
* Cancel treating $tree['foo'] as array and cancel back it expansio n, * Cancel treating $tree['foo'] as array and cancel back it expansio n,
* e.g. make it $tree['foo.bar'] = 'test1' again. * e.g. make it $tree['foo.bar'] = 'test1' again.
*/ */
self::cancelExpand($parentOfElem, $part, $elem); self::cancelExpand($parentOfElem, $part, $elem);
} }
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)