xp-framework / compiler

Compiles future PHP to today's PHP.
19 stars 0 forks source link

Add support for specifying keys in list() #145

Closed thekid closed 1 year ago

thekid commented 1 year ago

Example:

['one' => $a, 'two' => $b]= ['two' => 2, 'one' => 1];

echo $a; // 1
echo $b; // 2

See https://wiki.php.net/rfc/list_keys, supported since PHP 7.1

thekid commented 1 year ago

Released in https://github.com/xp-framework/compiler/releases/tag/v8.7.0