1--TEST--
2GH-10168: Assign static prop
3--FILE--
4<?php
5
6class Test {
7    static ?Test $test;
8
9    function __destruct() {
10        Test::$test = null;
11    }
12}
13
14Test::$test = new Test;
15var_dump(Test::$test = new Test);
16
17?>
18--EXPECT--
19object(Test)#2 (0) {
20}
21