1--TEST-- 2Duplicate param 3--FILE-- 4<?php 5 6function test($a) {} 7 8try { 9 test(a: 1, a: 2); 10} catch (Error $e) { 11 echo $e->getMessage(), "\n"; 12} 13 14try { 15 test(1, a: 2); 16} catch (Error $e) { 17 echo $e->getMessage(), "\n"; 18} 19 20?> 21--EXPECT-- 22Named parameter $a overwrites previous argument 23Named parameter $a overwrites previous argument 24