Skip to content

Commit ac5176b

Browse files
committed
Docs: Clarify the weekday range in WP_Locale::get_weekday().
Trac ticket: https://core.trac.wordpress.org/ticket/64522 WordPress.org contributor: raulsalvat
1 parent 38a613a commit ac5176b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/wp-includes/class-wp-locale.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ public function init() {
262262
*
263263
* @since 2.1.0
264264
*
265-
* @param int $weekday_number 0 for Sunday through 6 Saturday.
265+
* @param int<0, 6> $weekday_number 0 for Sunday through 6 Saturday.
266266
* @return string Full translated weekday.
267267
*/
268268
public function get_weekday( $weekday_number ) {

0 commit comments

Comments
 (0)