Hello, i've following data:
0) Phalcon 2.0.8
1) Loader:
$loader->registerNamespaces([ 'Test\Module' => $config->modules, 'Test' => $config->common, ]);
2) Class:
namespace Test\Module\Matroshka\Demo{ class Module extends \Test\Module{ } }
3) Class:
namespace Test{ class Module{ } }
Issue: When i'm trying to execute code:
var_dump(class_exists('Test\Module\Matroshka\Demo\Module'));
i'm revieving an error
Warning: Invalid arguments supplied for str_replace() in D:\repository\test\application\modules\Matroshka\Demo\Module.php on line 5
Where "line 5" is:
class Module extends \Test\Module{
Any ideas how can i fix that meaningless warning. Though, seems everything is working, but i'll prefer to solve an issue. Thank you.
PS. if rename \Test\Module to \Test\Module2 and use it to extend classes then warning disappear.