diff options
author | Gabriel Caruso <carusogabriel34@gmail.com> | 2018-03-10 20:20:27 -0300 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2018-03-23 18:58:42 +0100 |
commit | caa32517ba1063150850a34e81d7902e21fa3a80 (patch) | |
tree | 1325f506b69c2bf133794d66798f92b873d5e1b2 /ext/date | |
parent | ad87e2bd6a3cdc792a15bdab987d36cb85a68563 (diff) | |
download | php-git-caa32517ba1063150850a34e81d7902e21fa3a80.tar.gz |
Use ZEND_ARG_ARRAY_INFO in DateTime*::__set_state
Diffstat (limited to 'ext/date')
-rw-r--r-- | ext/date/php_date.c | 2 | ||||
-rw-r--r-- | 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 |