Last active
April 26, 2021 17:52
-
-
Save iluuu1994/acd04efb2454fa228202bedd92c6cc6c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--TEST-- | |
Named arguments in varargs. | |
--FILE-- | |
<?php | |
function dump(...$values): void { | |
var_dump($values); | |
} | |
$p = dump('Foo', ?, bar: 'Bar'); | |
$p('Baz', qux: 'Qux', quux: 'Quux'); | |
?> | |
--EXPECT-- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment