Skip to content

Commit

Permalink
Merge "Add type-hint for getMonthFormat function"
Browse files Browse the repository at this point in the history
  • Loading branch information
jenkins-bot authored and Gerrit Code Review committed Jan 29, 2025
2 parents 8aaa56c + fea5ac0 commit f9c8345
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/includes/Formatters/MwTimeIsoFormatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ private function getDayFormat( $dateFormat ) {
*
* @return string A date format for the month that roundtrips the Wikibase TimeParsers.
*/
private function getMonthFormat( $dateFormat ) {
private function getMonthFormat( ?string $dateFormat ): string {
if ( $dateFormat && preg_match( '/(?:[FMn]|(?<!x)m|xg)[.,]?/', $dateFormat, $matches ) ) {
return $matches[0];
}
Expand Down

0 comments on commit f9c8345

Please # to comment.