1Yield with unary operator argument
2-----
3<?php
4
5function gen() {
6    yield +1;
7    yield -1;
8    yield * -1;
9}
10-----
11array(
12    0: Stmt_Function(
13        attrGroups: array(
14        )
15        byRef: false
16        name: Identifier(
17            name: gen
18        )
19        params: array(
20        )
21        returnType: null
22        stmts: array(
23            0: Stmt_Expression(
24                expr: Expr_Yield(
25                    key: null
26                    value: Expr_UnaryPlus(
27                        expr: Scalar_Int(
28                            value: 1
29                        )
30                    )
31                )
32            )
33            1: Stmt_Expression(
34                expr: Expr_Yield(
35                    key: null
36                    value: Expr_UnaryMinus(
37                        expr: Scalar_Int(
38                            value: 1
39                        )
40                    )
41                )
42            )
43            2: Stmt_Expression(
44                expr: Expr_BinaryOp_Mul(
45                    left: Expr_Yield(
46                        key: null
47                        value: null
48                    )
49                    right: Expr_UnaryMinus(
50                        expr: Scalar_Int(
51                            value: 1
52                        )
53                    )
54                )
55            )
56        )
57    )
58)
59