1
0
mirror of https://github.com/php/php-src.git synced 2026-04-09 00:53:30 +02:00
Files
archived-php-src/Zend/tests
Nikita Popov e72bf63691 Allow variadic arguments to replace non-variadic ones
Any number of arguments can be replaced by a variadic one, so
long as the variadic argument is compatible (in the sense of
contravariance) with the subsumed arguments.

In particular this means that function(...$args) becomes a
near-universal signature: It is compatible with any function
signature that does not accept parameters by-reference.

This also fixes bug #70839, which describes a special case.

Closes GH-5059.
2020-01-23 15:23:31 +01:00
..
2019-12-04 11:21:34 +01:00
2019-07-23 11:28:10 +02:00
2019-12-20 17:46:43 +01:00
2020-01-15 18:38:15 +01:00
2019-11-08 15:15:48 +01:00
2019-12-21 11:58:00 +01:00
2020-01-03 10:43:24 +01:00
2019-03-11 11:32:20 +01:00
2019-03-11 11:32:20 +01:00
2019-03-11 11:32:20 +01:00
2019-03-15 23:36:47 +01:00
2019-03-11 11:32:20 +01:00
2019-03-11 11:32:20 +01:00
2019-03-11 11:32:20 +01:00
2019-10-02 10:34:08 +02:00
2019-10-02 10:34:08 +02:00
2019-10-02 10:34:08 +02:00
2019-10-10 15:57:57 +02:00
2019-11-07 21:31:47 +01:00
2019-11-07 21:31:47 +01:00
2019-11-07 21:31:47 +01:00
2019-11-07 21:31:47 +01:00
2019-11-07 21:31:47 +01:00
2019-11-07 21:31:47 +01:00
2019-11-07 21:31:47 +01:00
2019-11-07 21:31:47 +01:00
2019-11-07 21:31:47 +01:00
2019-11-07 21:31:47 +01:00
2019-11-07 21:31:47 +01:00
2019-04-11 21:37:10 +03:00
2019-11-07 21:31:47 +01:00
2019-11-07 21:31:47 +01:00
2019-10-02 10:34:08 +02:00
2019-10-02 10:34:08 +02:00
2019-10-02 10:34:08 +02:00
2019-10-02 10:34:08 +02:00
2019-11-07 21:31:47 +01:00
2019-11-07 21:31:47 +01:00
2019-11-07 21:31:47 +01:00
2019-11-07 21:31:47 +01:00
2019-06-05 14:25:07 +02:00
2019-10-02 10:34:08 +02:00
2019-11-07 21:31:47 +01:00
2019-11-07 21:31:47 +01:00
2019-11-07 21:31:47 +01:00
2019-11-07 21:31:47 +01:00
2019-11-07 21:31:47 +01:00
2019-01-30 14:00:16 +01:00
2019-01-30 14:00:16 +01:00
2019-11-07 21:31:47 +01:00
2019-11-07 21:31:47 +01:00
2019-01-30 14:00:16 +01:00
2019-10-02 10:34:08 +02:00
2019-10-02 10:34:08 +02:00
2019-10-02 10:34:08 +02:00
2019-03-15 23:36:47 +01:00
2019-10-02 10:34:08 +02:00
2019-10-02 10:34:08 +02:00
2019-10-02 10:34:08 +02:00
2019-10-02 10:34:08 +02:00
2019-11-07 21:31:47 +01:00
2019-10-02 10:34:08 +02:00
2019-11-07 21:31:47 +01:00
2019-09-12 16:41:45 +02:00
2019-10-04 12:41:49 +02:00
2019-10-02 10:34:08 +02:00
2019-10-02 10:34:08 +02:00
2019-10-02 10:34:08 +02:00
2019-05-14 10:23:58 +02:00
2019-01-30 14:00:16 +01:00
2019-10-10 15:57:57 +02:00
2019-10-10 15:57:57 +02:00
2019-05-24 09:30:37 +02:00
2019-10-02 10:34:08 +02:00
2019-07-23 11:28:10 +02:00
2019-11-07 21:31:47 +01:00
2019-10-02 10:34:08 +02:00
2019-10-02 10:34:08 +02:00
2019-11-07 21:31:47 +01:00
2019-10-02 10:34:08 +02:00
2019-02-28 09:11:50 +01:00
2019-06-05 14:25:07 +02:00
2019-05-09 14:31:39 +02:00
2019-11-01 15:26:52 +01:00
2019-10-02 10:34:08 +02:00
2019-11-18 12:38:10 +01:00
2019-08-13 14:53:53 +02:00
2019-06-05 14:25:07 +02:00
2019-08-13 14:53:53 +02:00
2019-11-07 21:31:47 +01:00
2019-10-02 10:34:08 +02:00
2020-01-03 11:26:31 +01:00
2019-10-02 10:34:08 +02:00
2019-01-02 11:32:48 +01:00
2019-10-02 10:34:08 +02:00
2019-10-02 10:34:08 +02:00
2019-02-12 17:36:07 +01:00
2019-10-02 10:34:08 +02:00
2019-10-02 10:34:08 +02:00
2019-11-07 21:31:47 +01:00
2019-11-07 21:31:47 +01:00
2019-10-02 10:34:08 +02:00
2019-02-22 10:11:54 +01:00
2019-02-22 10:11:54 +01:00
2019-03-14 20:41:19 +01:00
2019-04-11 16:56:36 +02:00
2019-08-17 10:58:54 +02:00
2019-07-15 12:00:30 +02:00
2019-06-12 22:39:00 +02:00
2019-06-13 10:59:01 +02:00
2019-08-28 12:32:06 +02:00
2019-07-29 10:07:12 +02:00
2019-07-29 11:12:00 +02:00
2019-08-01 10:10:28 +02:00
2019-08-02 10:37:44 +02:00
2019-08-12 10:45:13 +02:00
2019-08-13 10:22:32 +02:00
2019-09-06 11:33:28 +02:00
2019-10-02 10:34:08 +02:00
2019-09-24 12:17:21 +02:00
2019-10-08 14:32:49 +02:00
2019-10-09 17:00:27 +02:00
2019-10-29 15:06:16 +01:00
2019-10-28 10:27:32 +01:00
2019-12-18 15:55:45 +01:00
2019-11-06 12:52:34 +01:00
2019-11-15 12:06:17 +01:00
2019-12-04 09:40:48 +01:00
2019-12-13 16:37:20 +01:00
2020-01-23 12:54:14 +01:00
2019-01-30 14:00:16 +01:00
2019-11-07 21:31:47 +01:00
2019-08-13 14:53:53 +02:00
2019-08-13 14:53:53 +02:00
2019-08-13 14:53:53 +02:00
2019-08-13 14:53:53 +02:00
2019-08-13 14:53:53 +02:00
2019-08-13 14:53:53 +02:00
2019-11-07 21:31:47 +01:00
2019-11-07 21:31:47 +01:00
2019-10-02 12:08:12 +02:00
2019-01-25 11:01:06 +01:00
2019-06-05 14:53:50 +02:00
2019-01-30 14:00:16 +01:00
2019-11-07 21:31:47 +01:00
2019-11-07 21:31:47 +01:00
2019-11-07 21:31:47 +01:00
2019-11-07 21:31:47 +01:00
2019-11-07 21:31:47 +01:00
2020-01-13 12:06:23 +01:00
2019-11-07 21:31:47 +01:00
2019-11-07 21:31:47 +01:00
2019-11-07 21:31:47 +01:00
2019-11-07 21:31:47 +01:00
2019-11-07 21:31:47 +01:00
2019-11-07 21:31:47 +01:00
2019-11-07 21:31:47 +01:00
2019-07-16 11:53:48 +02:00
2019-01-29 11:10:47 +01:00