Skip to content

Commit 9595640

Browse files
committed
Convert some internal IntlCalendar warnigns to Errors
1 parent 52e284a commit 9595640

18 files changed

+370
-380
lines changed

ext/intl/breakiterator/breakiterator_arginfo.h

Lines changed: 1 addition & 1 deletion
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: 7180c7b167edb3aa8580ae4a600627f28636ac38 */
2+
* Stub hash: 5eeedbbb7d07b0063d7bc19842b863a2c6d6898b */
33

44
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_IntlBreakIterator_createCharacterInstance, 0, 0, 0)
55
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, locale, IS_STRING, 1, "null")

ext/intl/calendar/calendar.stub.php

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public static function createInstance($timeZone = null, ?string $locale = null)
2020
public function equals(IntlCalendar $calendar) {}
2121

2222
/**
23-
* @return int|false
23+
* @return int
2424
* @alias intlcal_field_difference
2525
*/
2626
public function fieldDifference(float $when, int $field) {}
@@ -57,19 +57,19 @@ public function clear(?int $field = null) {}
5757
public static function fromDateTime($dateTime, ?string $locale = null) {}
5858

5959
/**
60-
* @return int|false
60+
* @return int
6161
* @alias intlcal_get
6262
*/
6363
public function get(int $field) {}
6464

6565
/**
66-
* @return int|false
66+
* @return int
6767
* @alias intlcal_get_actual_maximum
6868
*/
6969
public function getActualMaximum(int $field) {}
7070

7171
/**
72-
* @return int|false
72+
* @return int
7373
* @alias intlcal_get_actual_minimum
7474
*/
7575
public function getActualMinimum(int $field) {}
@@ -81,7 +81,7 @@ public function getActualMinimum(int $field) {}
8181
public static function getAvailableLocales() {}
8282

8383
/**
84-
* @return int|false
84+
* @return int
8585
* @alias intlcal_get_day_of_week_type
8686
*/
8787
public function getDayOfWeekType(int $dayOfWeek) {}
@@ -99,13 +99,13 @@ public function getErrorCode() {}
9999
public function getErrorMessage() {}
100100

101101
/**
102-
* @return int|false
102+
* @return int
103103
* @alias intlcal_get_first_day_of_week
104104
*/
105105
public function getFirstDayOfWeek() {}
106106

107107
/**
108-
* @return int|false
108+
* @return int
109109
* @alias intlcal_get_greatest_minimum
110110
*/
111111
public function getGreatestMinimum(int $field) {}
@@ -117,25 +117,25 @@ public function getGreatestMinimum(int $field) {}
117117
public static function getKeywordValuesForLocale(string $key, string $locale, bool $commonlyUsed) {}
118118

119119
/**
120-
* @return int|false
120+
* @return int
121121
* @alias intlcal_get_least_maximum
122122
*/
123123
public function getLeastMaximum(int $field) {}
124124

125125
/**
126-
* @return string|false
126+
* @return string
127127
* @alias intlcal_get_locale
128128
*/
129129
public function getLocale(int $localeType) {}
130130

131131
/**
132-
* @return int|false
132+
* @return int
133133
* @alias intlcal_get_maximum
134134
*/
135135
public function getMaximum(int $field) {}
136136

137137
/**
138-
* @return int|false
138+
* @return int
139139
* @alias intlcal_get_minimal_days_in_first_week
140140
*/
141141
public function getMinimalDaysInFirstWeek() {}
@@ -147,7 +147,7 @@ public function getMinimalDaysInFirstWeek() {}
147147
public function setMinimalDaysInFirstWeek(int $numberOfDays) {}
148148

149149
/**
150-
* @return int|false
150+
* @return int
151151
* @alias intlcal_get_minimum
152152
*/
153153
public function getMinimum(int $field) {}
@@ -171,7 +171,7 @@ public function getRepeatedWallTimeOption() {}
171171
public function getSkippedWallTimeOption() {}
172172

173173
/**
174-
* @return float|false
174+
* @return float
175175
* @alias intlcal_get_time
176176
*/
177177
public function getTime() {}
@@ -189,7 +189,7 @@ public function getTimeZone() {}
189189
public function getType() {}
190190

191191
/**
192-
* @return int|false
192+
* @return int
193193
* @alias intlcal_get_weekend_transition
194194
*/
195195
public function getWeekendTransition(int $dayOfWeek) {}
@@ -292,7 +292,7 @@ public function __construct($timeZoneOrYear = UNKNOWN, $localeOrMonth = UNKNOWN,
292292
public function setGregorianChange(float $change) {}
293293

294294
/**
295-
* @return float|false
295+
* @return float
296296
* @alias intlgregcal_get_gregorian_change
297297
*/
298298
public function getGregorianChange() {}

ext/intl/calendar/calendar_arginfo.h

Lines changed: 1 addition & 1 deletion
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: 7261d52837a7ac393453511d2c29ee9106407236 */
2+
* Stub hash: 8b8a98d5035880031ac42fda5e58bde54c1d85fc */
33

44
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_IntlCalendar___construct, 0, 0, 0)
55
ZEND_END_ARG_INFO()

0 commit comments

Comments
 (0)