1--TEST--
2Named params on internal functions: Variadic functions that don't support extra named args
3--FILE--
4<?php
5
6try {
7    array_merge([1, 2], a: [3, 4]);
8} catch (ArgumentCountError $e) {
9    echo $e->getMessage(), "\n";
10}
11
12try {
13    array_diff_key([1, 2], [3, 4], a: [5, 6]);
14} catch (ArgumentCountError $e) {
15    echo $e->getMessage(), "\n";
16}
17
18?>
19--EXPECT--
20array_merge() does not accept unknown named parameters
21array_diff_key() does not accept unknown named parameters
22