php-parser/test/code/parser/stmt/function/variadic.test-fail

6 lines
130 B
Plaintext

Invalid variadic function
-----
<?php
function foo(...$foo = []) {}
-----
Variadic parameter cannot have a default value on line 2