xref: /PHP-8.4/ext/spl/tests/gh10248.phpt (revision 0801c567)
1--TEST--
2GH-10248 (Assertion `!(zval_get_type(&(*(property))) == 10)' failed.)
3--FILE--
4<?php
5
6class a extends ArrayIterator
7{
8    public ?int $property;
9}
10$a = new a();
11$a->property = &$b;
12$a->property;
13
14echo "Done\n";
15
16?>
17--EXPECT--
18Done
19