1--TEST--
2Test typed properties unset leaves properties in an uninitialized state
3--FILE--
4<?php
5class Foo {
6	public int $bar;
7
8	public function __get($name) {
9		var_dump($name);
10		/* return value has to be compatible with int */
11		return 0;
12	}
13}
14
15$foo = new Foo();
16
17unset($foo->bar);
18
19var_dump($foo->bar);
20?>
21--EXPECT--
22string(3) "bar"
23int(0)
24