From caa32517ba1063150850a34e81d7902e21fa3a80 Mon Sep 17 00:00:00 2001 From: Gabriel Caruso Date: Sat, 10 Mar 2018 20:20:27 -0300 Subject: [PATCH] Use ZEND_ARG_ARRAY_INFO in DateTime*::__set_state --- ext/date/php_date.c | 2 +- ext/date/tests/ExtendDateTime.phpt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/date/php_date.c b/ext/date/php_date.c index 07c6371317..4a77149e46 100644 --- a/ext/date/php_date.c +++ b/ext/date/php_date.c @@ -394,7 +394,7 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_date_period_construct, 0, 0, 3) ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_INFO_EX(arginfo_date_set_state, 0, 0, 1) - ZEND_ARG_INFO(0, array) + ZEND_ARG_ARRAY_INFO(0, array, 0) ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_INFO_EX(arginfo_date_interval_construct, 0, 0, 1) diff --git a/ext/date/tests/ExtendDateTime.phpt b/ext/date/tests/ExtendDateTime.phpt index 2082d4b33d..164221709c 100644 --- a/ext/date/tests/ExtendDateTime.phpt +++ b/ext/date/tests/ExtendDateTime.phpt @@ -9,4 +9,4 @@ class MyDateTime extends DateTime { } ?> --EXPECTF-- -Warning: Declaration of MyDateTime::__set_state() should be compatible with DateTime::__set_state($array) in %s on line %d +Warning: Declaration of MyDateTime::__set_state() should be compatible with DateTime::__set_state(array $array) in %s on line %d -- 2.50.1