1--TEST--
2JIT FETCH_DIM_RW: 004
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.file_update_protection=0
7opcache.jit_buffer_size=1M
8--FILE--
9<?php
10set_error_handler(function(y$y) {
11});
12$k=[];
13$y[$k]++;
14?>
15--EXPECTF--
16Fatal error: Uncaught TypeError: {closure}(): Argument #1 ($y) must be of type y, int given, called in %sfetch_dim_rw_004.php on line 5 and defined in %sfetch_dim_rw_004.php:2
17Stack trace:
18#0 %sfetch_dim_rw_004.php(5): {closure}(2, 'Undefined varia...', '%s', 5)
19#1 {main}
20
21Next TypeError: Illegal offset type in %sfetch_dim_rw_004.php:5
22Stack trace:
23#0 {main}
24  thrown in %sfetch_dim_rw_004.php on line 5
25