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