Phalcon version 2.1.0b Hello, i cant merge several config files with same variable name e.g $config in main index.php file
A.config.php
<?php
$config = []; // without this type, we getting
**Fatal error: Uncaught exception 'Exception' with message 'The argument is not initialized or iterable()' in phalcon/config.zep on line 62**
$config['x'] = 'x';
return $config;
?>
B.config.php
<?php
$config = [];
$config['x'] = 'y';
return $config;
index.php
//same variable names ->>>> $config <<<--- in config.php and index.php on $config object
<?php
$config = new Phalcon\Config(require 'A.config.php');
$config2 = new Phalcon\Config(require 'B.config.php');
print_r($config,$config2);
?>
<pre>Array
(
[x] => y
)
</pre><pre>Phalcon\Config Object
(
[x] => y
)
</pre>
NOW merging and getting FATAL ERROR
<?php
$config = new Phalcon\Config(require 'A.config.php');
$config2 = new Phalcon\Config(require 'B.config.php');
$config->merge($config2);// Fatal error: Call to a member function merge() on array in
?>
//AND LAST NOW OK AND WORKING
<?php
$configXXXXX = new Phalcon\Config(require 'A.config.php');
$configYYYYYY = new Phalcon\Config(require 'B.config.php');
$configXXXXX ->merge($configYYYYYY );//NOW OK
?>