php-parser icon indicating copy to clipboard operation
php-parser copied to clipboard

Disjunctive Normal Form (DNF) Types is not parsed

Open abdul-alhasany opened this issue 2 years ago • 0 comments

Hi It seems that Disjunctive Normal Form (DNF) Types is not supported yet. It is showing syntax error when displayed.

It would be great if it is supported in the pareser.

Example:

class Foo {
    public function bar((A&B)|null $entity) {
        return $entity;
    }
}

abdul-alhasany avatar Jul 06 '23 13:07 abdul-alhasany