Skip to content

Issues with syntax #35

Open
Open
@orolyn

Description

@orolyn

@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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions