1
0
mirror of https://github.com/php/php-src.git synced 2026-04-05 07:02:33 +02:00

Make IntlCalendar::roll() return type tentative

This method did not have a type in PHP 8.0 and is not final, so
the new return type should be tentative.
This commit is contained in:
Nikita Popov
2021-09-22 15:00:29 +02:00
parent cffba945e5
commit 4fcca032e1
2 changed files with 3 additions and 2 deletions

View File

@@ -220,6 +220,7 @@ class IntlCalendar
/**
* @param int|bool $value
* @alias intlcal_roll
* @tentative-return-type
*/
public function roll(int $field, $value): bool {}

View File

@@ -1,5 +1,5 @@
/* This is a generated file, edit the .stub.php file instead.
* Stub hash: 1f47fca82af35929e8cbcb9b2b9979c4c03f658c */
* Stub hash: 2265c2a4f478d6ccd576ce09a19a158df38a2bdb */
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_IntlCalendar___construct, 0, 0, 0)
ZEND_END_ARG_INFO()
@@ -113,7 +113,7 @@ ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_IntlCalendar_isW
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, timestamp, IS_DOUBLE, 1, "null")
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_IntlCalendar_roll, 0, 2, _IS_BOOL, 0)
ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_IntlCalendar_roll, 0, 2, _IS_BOOL, 0)
ZEND_ARG_TYPE_INFO(0, field, IS_LONG, 0)
ZEND_ARG_INFO(0, value)
ZEND_END_ARG_INFO()