Skip to content

Commit f21b160

Browse files
committed
Update ext/calendar parameter names
Closes GH-6277.
1 parent dee8024 commit f21b160

File tree

2 files changed

+19
-19
lines changed

2 files changed

+19
-19
lines changed

ext/calendar/calendar.stub.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,33 +4,33 @@
44

55
function cal_days_in_month(int $calendar, int $month, int $year): int {}
66

7-
function cal_from_jd(int $jd, int $calendar): array {}
7+
function cal_from_jd(int $julian_day, int $calendar): array {}
88

99
function cal_info(int $calendar = -1): array {}
1010

1111
function cal_to_jd(int $calendar, int $month, int $day, int $year): int {}
1212

13-
function easter_date(?int $year = null, int $method = CAL_EASTER_DEFAULT): int {}
13+
function easter_date(?int $year = null, int $mode = CAL_EASTER_DEFAULT): int {}
1414

15-
function easter_days(?int $year = null, int $method = CAL_EASTER_DEFAULT): int {}
15+
function easter_days(?int $year = null, int $mode = CAL_EASTER_DEFAULT): int {}
1616

1717
function frenchtojd(int $month, int $day, int $year): int {}
1818

1919
function gregoriantojd(int $month, int $day, int $year): int {}
2020

21-
function jddayofweek(int $juliandaycount, int $mode = CAL_DOW_DAYNO): int|string {}
21+
function jddayofweek(int $julian_day, int $mode = CAL_DOW_DAYNO): int|string {}
2222

23-
function jdmonthname(int $juliandaycount, int $mode): string {}
23+
function jdmonthname(int $julian_day, int $mode): string {}
2424

25-
function jdtofrench(int $juliandaycount): string {}
25+
function jdtofrench(int $julian_day): string {}
2626

27-
function jdtogregorian(int $juliandaycount): string {}
27+
function jdtogregorian(int $julian_day): string {}
2828

29-
function jdtojewish(int $juliandaycount, bool $hebrew = false, int $fl = 0): string {}
29+
function jdtojewish(int $julian_day, bool $hebrew = false, int $flags = 0): string {}
3030

31-
function jdtojulian(int $juliandaycount): string {}
31+
function jdtojulian(int $julian_day): string {}
3232

33-
function jdtounix(int $jday): int {}
33+
function jdtounix(int $julian_day): int {}
3434

3535
function jewishtojd(int $month, int $day, int $year): int {}
3636

ext/calendar/calendar_arginfo.h

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* This is a generated file, edit the .stub.php file instead.
2-
* Stub hash: 1ace9d7ae3e505ae2e14323e21fa6ac0a490896d */
2+
* Stub hash: ced2659f54bb25693831315625fe90b33e2f7cbe */
33

44
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_cal_days_in_month, 0, 3, IS_LONG, 0)
55
ZEND_ARG_TYPE_INFO(0, calendar, IS_LONG, 0)
@@ -8,7 +8,7 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_cal_days_in_month, 0, 3, IS_LONG
88
ZEND_END_ARG_INFO()
99

1010
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_cal_from_jd, 0, 2, IS_ARRAY, 0)
11-
ZEND_ARG_TYPE_INFO(0, jd, IS_LONG, 0)
11+
ZEND_ARG_TYPE_INFO(0, julian_day, IS_LONG, 0)
1212
ZEND_ARG_TYPE_INFO(0, calendar, IS_LONG, 0)
1313
ZEND_END_ARG_INFO()
1414

@@ -25,7 +25,7 @@ ZEND_END_ARG_INFO()
2525

2626
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_easter_date, 0, 0, IS_LONG, 0)
2727
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, year, IS_LONG, 1, "null")
28-
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, method, IS_LONG, 0, "CAL_EASTER_DEFAULT")
28+
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, mode, IS_LONG, 0, "CAL_EASTER_DEFAULT")
2929
ZEND_END_ARG_INFO()
3030

3131
#define arginfo_easter_days arginfo_easter_date
@@ -39,31 +39,31 @@ ZEND_END_ARG_INFO()
3939
#define arginfo_gregoriantojd arginfo_frenchtojd
4040

4141
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_jddayofweek, 0, 1, MAY_BE_LONG|MAY_BE_STRING)
42-
ZEND_ARG_TYPE_INFO(0, juliandaycount, IS_LONG, 0)
42+
ZEND_ARG_TYPE_INFO(0, julian_day, IS_LONG, 0)
4343
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, mode, IS_LONG, 0, "CAL_DOW_DAYNO")
4444
ZEND_END_ARG_INFO()
4545

4646
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_jdmonthname, 0, 2, IS_STRING, 0)
47-
ZEND_ARG_TYPE_INFO(0, juliandaycount, IS_LONG, 0)
47+
ZEND_ARG_TYPE_INFO(0, julian_day, IS_LONG, 0)
4848
ZEND_ARG_TYPE_INFO(0, mode, IS_LONG, 0)
4949
ZEND_END_ARG_INFO()
5050

5151
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_jdtofrench, 0, 1, IS_STRING, 0)
52-
ZEND_ARG_TYPE_INFO(0, juliandaycount, IS_LONG, 0)
52+
ZEND_ARG_TYPE_INFO(0, julian_day, IS_LONG, 0)
5353
ZEND_END_ARG_INFO()
5454

5555
#define arginfo_jdtogregorian arginfo_jdtofrench
5656

5757
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_jdtojewish, 0, 1, IS_STRING, 0)
58-
ZEND_ARG_TYPE_INFO(0, juliandaycount, IS_LONG, 0)
58+
ZEND_ARG_TYPE_INFO(0, julian_day, IS_LONG, 0)
5959
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, hebrew, _IS_BOOL, 0, "false")
60-
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, fl, IS_LONG, 0, "0")
60+
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, flags, IS_LONG, 0, "0")
6161
ZEND_END_ARG_INFO()
6262

6363
#define arginfo_jdtojulian arginfo_jdtofrench
6464

6565
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_jdtounix, 0, 1, IS_LONG, 0)
66-
ZEND_ARG_TYPE_INFO(0, jday, IS_LONG, 0)
66+
ZEND_ARG_TYPE_INFO(0, julian_day, IS_LONG, 0)
6767
ZEND_END_ARG_INFO()
6868

6969
#define arginfo_jewishtojd arginfo_frenchtojd

0 commit comments

Comments
 (0)