1--TEST--
2Optional param before required should be treated as required for named args as well
3--FILE--
4<?php
5
6function test($a = 1, $b) {
7}
8try {
9    test(b: 2);
10} catch (Error $e) {
11    echo $e->getMessage(), "\n";
12}
13
14?>
15--EXPECTF--
16Deprecated: Optional parameter $a declared before required parameter $b is implicitly treated as a required parameter in %s on line %d
17test(): Argument #1 ($a) not passed
18