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