mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
16 lines
378 B
PHP
16 lines
378 B
PHP
--TEST--
|
|
GH-20194: Using null as an array offset does not emit deprecation when resolved at compile time
|
|
--FILE--
|
|
<?php
|
|
|
|
$a = [null => 1];
|
|
|
|
echo $a[null];
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Deprecated: Using null as an array offset is deprecated, use an empty string instead in %s on line %d
|
|
|
|
Deprecated: Using null as an array offset is deprecated, use an empty string instead in %s on line %d
|
|
1
|