From: Gabriel Caruso Date: Sat, 10 Mar 2018 23:20:27 +0000 (-0300) Subject: Use ZEND_ARG_ARRAY_INFO in DateTime*::__set_state X-Git-Tag: php-7.3.0alpha1~145 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=caa32517ba1063150850a34e81d7902e21fa3a80;p=php Use ZEND_ARG_ARRAY_INFO in DateTime*::__set_state --- 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