Fix unpacking with string key example

The example seems not relevant since it already works and produces the same output in the previous PHP versions.

Closes GH-1501.
This commit is contained in:
Laurent VOULLEMIER 2022-04-04 12:29:44 +02:00 committed by GitHub
parent 99d758bd25
commit 64b3b8a362
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -36,8 +36,8 @@
<programlisting role="php">
<![CDATA[
<?php
$arr1 = [1, 'a'];
$arr2 = [...$arr1, 'c' => 'd']; //[1, 'a', 'c' => 'd']
$arr1 = [1, 'a' => 'b'];
$arr2 = [...$arr1, 'c' => 'd']; //[1, 'a' => 'b', 'c' => 'd']
?>
]]>
</programlisting>