xref: /php-src/ext/opcache/tests/jit/cast_002.phpt (revision c16ad918)
1--TEST--
2JIT CAST: 002
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.file_update_protection=0
7--FILE--
8<?php
9function test(?int $i) {
10    $a = (array) $i;
11    $a[-1] = 1;
12    var_dump($a);
13}
14test(null);
15?>
16--EXPECT--
17array(1) {
18  [-1]=>
19  int(1)
20}
21