]> granicus.if.org Git - php/commit
Make argument type error message consistent for variadics
authorNikita Popov <nikita.ppv@gmail.com>
Wed, 9 Sep 2020 09:42:32 +0000 (11:42 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Fri, 11 Sep 2020 15:16:19 +0000 (17:16 +0200)
commitb7fe1b66d01bede1ef4480ebd1673c00ff1a1c5b
treeeb7ef86a90fea8cd13a2a4bba6f683ebc57d4e1f
parenta79008bd91b4188d3474815e0c676685f29d0169
Make argument type error message consistent for variadics

If an argument error refers to a variadic argument, we normally
do not print the name of the variadic (as it is not referring to
an individual argument, but to the collection of all of them).
However, this was not the case for the userland argument type
error message, which did it's own formatting.

Closes GH-6101.
Zend/tests/arrow_functions/006.phpt
Zend/tests/function_arguments/variadic_argument_type_error.phpt
Zend/tests/variadic/typehint_error.phpt
Zend/tests/variadic/typehint_suppressed_error.phpt
Zend/zend_execute.c