]> granicus.if.org Git - php/commitdiff
Use ZEND_ARG_ARRAY_INFO in DateTime*::__set_state
authorGabriel Caruso <carusogabriel34@gmail.com>
Sat, 10 Mar 2018 23:20:27 +0000 (20:20 -0300)
committerNikita Popov <nikita.ppv@gmail.com>
Fri, 23 Mar 2018 17:58:42 +0000 (18:58 +0100)
ext/date/php_date.c
ext/date/tests/ExtendDateTime.phpt

index 07c6371317af9b0cf5fd3f11413177446352607e..4a77149e46ca79e793a686d7f406fde218f2693a 100644 (file)
@@ -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)
index 2082d4b33daf63bbec2a8d9b1454ed887396a77f..164221709c424739082820094f39934371a76146 100644 (file)
@@ -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