xref: /PHP-8.1/Zend/tests/036.phpt (revision c803499e)
1--TEST--
2Trying to use lambda in array offset
3--FILE--
4<?php
5
6try {
7    $test[function(){}] = 1;
8} catch (Error $e) {
9    echo $e->getMessage(), "\n";
10}
11
12?>
13--EXPECT--
14Illegal offset type
15