@@ -262,8 +262,10 @@ public function init() {
262262 *
263263 * @since 2.1.0
264264 *
265- * @param int<0, 6> $weekday_number 0 for Sunday through 6 Saturday.
265+ * @param int $weekday_number 0 for Sunday through 6 Saturday.
266266 * @return string Full translated weekday.
267+ *
268+ * @phpstan-param int<0, 6> $weekday_number
267269 */
268270 public function get_weekday ( $ weekday_number ) {
269271 return $ this ->weekday [ $ weekday_number ];
@@ -316,6 +318,8 @@ public function get_weekday_abbrev( $weekday_name ) {
316318 *
317319 * @param string|int $month_number '01' through '12'.
318320 * @return string Translated full month name. If the month number is not found, an empty string is returned.
321+ *
322+ * @phpstan-param int<1, 12>|'1'|'2'|'3'|'4'|'5'|'6'|'7'|'8'|'9'|'10'|'11'|'12'|'01'|'02'|'03'|'04'|'05'|'06'|'07'|'08'|'09' $month_number
319323 */
320324 public function get_month ( $ month_number ) {
321325 $ month_number = zeroise ( $ month_number , 2 );
@@ -355,6 +359,8 @@ public function get_month_abbrev( $month_name ) {
355359 *
356360 * @param string|int $month_number '01' through '12'.
357361 * @return string Translated genitive month name.
362+ *
363+ * @phpstan-param int<1, 12>|'1'|'2'|'3'|'4'|'5'|'6'|'7'|'8'|'9'|'10'|'11'|'12'|'01'|'02'|'03'|'04'|'05'|'06'|'07'|'08'|'09' $month_number
358364 */
359365 public function get_month_genitive ( $ month_number ) {
360366 return $ this ->month_genitive [ zeroise ( $ month_number , 2 ) ];
@@ -369,6 +375,8 @@ public function get_month_genitive( $month_number ) {
369375 *
370376 * @param string $meridiem Either 'am', 'pm', 'AM', or 'PM'. Not translated version.
371377 * @return string Translated version
378+ *
379+ * @phpstan-param 'am'|'pm'|'AM'|'PM' $meridiem
372380 */
373381 public function get_meridiem ( $ meridiem ) {
374382 return $ this ->meridiem [ $ meridiem ];
0 commit comments