1--TEST-- 2Trailing comma in function signatures 3--FILE-- 4<?php 5 6function test( 7 $there, 8 $are, 9 $many, 10 $params, 11) { 12 echo "Foo\n"; 13} 14 15class Test { 16 public function method( 17 $there, 18 $are, 19 $many, 20 $params, 21 ) { 22 echo "Foo\n"; 23 } 24} 25 26$func = function( 27 $there, 28 $are, 29 $many, 30 $params, 31) { 32 echo "Foo\n"; 33}; 34 35$func = fn( 36 $there, 37 $shouldnt, 38 $be, 39 $many, 40 $params, 41) => print "Foo\n"; 42 43?> 44===DONE=== 45--EXPECT-- 46===DONE=== 47