1--TEST--
2GH-10168: Assign static prop ref
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;
15$tmp = new Test;
16var_dump(Test::$test = &$tmp);
17
18?>
19--EXPECT--
20NULL
21