xref: /PHP-8.3/Zend/tests/gh9500.phpt (revision 08b75395)
1--TEST--
2Bug GH-9500: Disjunctive Normal Form Types - readonly property followed by (
3--FILE--
4<?php
5class Dnf
6{
7    var A|(B&C) $a;
8    var (B&C)|A $b;
9    private A|(B&C) $c;
10    private (B&C)|A $d;
11    static A|(B&C) $e;
12    static (B&C)|A $f;
13    private static A|(B&C) $g;
14    private static (B&C)|A $h;
15    readonly private A|(B&C) $i;
16    readonly private (B&C)|A $j;
17    readonly A|(B&C) $k;
18    readonly (B&C)|A $l;
19    private readonly A|(B&C) $m;
20    private readonly (B&C)|A $n;
21}
22?>
23DONE
24--EXPECT--
25DONE
26