summaryrefslogtreecommitdiff
path: root/Zend/tests/type_declarations/typed_properties_104.phpt
blob: b9fe405b975f9f5f9c63ee868f433bef73c0ad2f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--TEST--
Uninitialized result of PRE_INC/PRE_DEC in case of exception
--FILE--
<?php
declare(strict_types=1);
$o = new class {
    public string $a = "123";
};
$x = & $o->a;
try {
    $ret = ++$x + 5;
} catch (TypeError $e) {
}
?>
OK
--EXPECT--
OK