1--TEST--
2Test typed properties allow null
3--FILE--
4<?php
5class Foo {
6    public null $value;
7}
8
9$foo = new Foo();
10$foo->value = null;
11
12try {
13    $foo->value = 1;
14} catch (\TypeError $e) {
15    echo $e->getMessage();
16}
17
18?>
19--EXPECT--
20Cannot assign int to property Foo::$value of type null
21