Open
Description
@morrisonlevi You mentioned a few issues with ambiguity regarding the syntax within statements.
The only one I am currently aware of is:
class A
{
}
define('B', 1);
define('C', 1);
define('D', 1);
function foo($x, $y)
{
var_dump(func_get_args());
}
foo(new A<B,C>(D));
/*
PHP Notice: Object of class A could not be converted to int in test.php on line 17
array(2) {
[0]=>
bool(false)
[1]=>
bool(false)
}
*/
Did you have any ideas on how to solve it?
Metadata
Metadata
Assignees
Labels
No labels