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