Open mrpavlikov opened 8 years ago
There is some transformation that adds () to new instances:
()
new Class => new Class()
new Class
new Class()
But it does things wrong in a bit more complex case:
$statsClass = new $config['statsField'][0];
results in syntax error (as for php 5)
$statsClass = new $config['statsField'()][0];
expected result:
$statsClass = new $config['statsField'][0]();
There is some transformation that adds
()
to new instances:new Class
=>new Class()
But it does things wrong in a bit more complex case:
$statsClass = new $config['statsField'][0];
results in syntax error (as for php 5)
$statsClass = new $config['statsField'()][0];
expected result:
$statsClass = new $config['statsField'][0]();