1Union types
2-----
3<?php
4
5class Test {
6    public A&B $prop;
7}
8
9function test(A&B $a): A&B {}
10-----
11class Test
12{
13    public A&B $prop;
14}
15function test(A&B $a): A&B
16{
17}