mirror of
https://github.com/php/php-src.git
synced 2024-12-16 05:15:03 +08:00
08b7539583
Fixes GH-9500 Closes GH-9512
26 lines
517 B
PHP
26 lines
517 B
PHP
--TEST--
|
|
Bug GH-9500: Disjunctive Normal Form Types - readonly property followed by (
|
|
--FILE--
|
|
<?php
|
|
class Dnf
|
|
{
|
|
var A|(B&C) $a;
|
|
var (B&C)|A $b;
|
|
private A|(B&C) $c;
|
|
private (B&C)|A $d;
|
|
static A|(B&C) $e;
|
|
static (B&C)|A $f;
|
|
private static A|(B&C) $g;
|
|
private static (B&C)|A $h;
|
|
readonly private A|(B&C) $i;
|
|
readonly private (B&C)|A $j;
|
|
readonly A|(B&C) $k;
|
|
readonly (B&C)|A $l;
|
|
private readonly A|(B&C) $m;
|
|
private readonly (B&C)|A $n;
|
|
}
|
|
?>
|
|
DONE
|
|
--EXPECT--
|
|
DONE
|