mirror of
https://github.com/php/php-src.git
synced 2026-10-28 17:56:50 +08:00
RFC: https://wiki.php.net/rfc/partial_function_application_v2 Co-authored-by: Joe Watkins <krakjoe@php.net>
17 lines
281 B
PHP
17 lines
281 B
PHP
--TEST--
|
|
PFA errors: not specifying a required param is an error
|
|
--FILE--
|
|
<?php
|
|
|
|
function f($a, $b, $c = null) {
|
|
}
|
|
|
|
$f = f(1, c: ?);
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Uncaught ArgumentCountError: f(): Argument #2 ($b) not passed in %s:6
|
|
Stack trace:
|
|
#0 {main}
|
|
thrown in %s on line %d
|