xref: /PHP-8.4/ext/opcache/tests/bug79193.phpt (revision e9f783fc)
1--TEST--
2Bug #79193: Incorrect type inference for self::$field =& $field
3--EXTENSIONS--
4opcache
5--FILE--
6<?php
7
8class Test {
9    public static $foo;
10    public static function method($bar) {
11        Test::$foo =& $bar;
12        var_dump(is_int($bar));
13    }
14}
15
16Test::method(1);
17
18?>
19--EXPECT--
20bool(true)
21