Skip to content

Commit 784495a

Browse files
TysonAndrefabpot
authored andcommitted
Fix minor phpdoc mismatches with the code(detected by phan)
1 parent d924753 commit 784495a

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

DateFormatter/DateFormat/FullTransformer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ public function formatReplace($dateChars, $dateTime)
133133
* @param \DateTime $dateTime A configured DateTime object to use to perform the date calculation
134134
* @param string $value String to convert to a time value
135135
*
136-
* @return int The corresponding Unix timestamp
136+
* @return int|false The corresponding Unix timestamp
137137
*
138138
* @throws \InvalidArgumentException When the value can not be matched with pattern
139139
*/

DateFormatter/IntlDateFormatter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ public function getPattern()
348348
/**
349349
* Returns the formatter's time type.
350350
*
351-
* @return string The time type used by the formatter
351+
* @return int The time type used by the formatter
352352
*
353353
* @see http://www.php.net/manual/en/intldateformatter.gettimetype.php
354354
*/
@@ -433,7 +433,7 @@ public function localtime($value, &$position = 0)
433433
* contain -1 otherwise it will contain the position at which parsing
434434
* ended. If $parse_pos > strlen($value), the parse fails immediately.
435435
*
436-
* @return string Parsed value as a timestamp
436+
* @return int Parsed value as a timestamp
437437
*
438438
* @see http://www.php.net/manual/en/intldateformatter.parse.php
439439
*

Locale/Locale.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,5 +315,7 @@ public static function setDefault($locale)
315315
if ('en' !== $locale) {
316316
throw new MethodNotImplementedException(__METHOD__);
317317
}
318+
319+
return true;
318320
}
319321
}

NumberFormatter/NumberFormatter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -686,7 +686,7 @@ protected function resetError()
686686
* @param float $value The numeric currency value
687687
* @param string $currency The 3-letter ISO 4217 currency code indicating the currency to use
688688
*
689-
* @return string The rounded numeric currency value
689+
* @return float The rounded numeric currency value
690690
*
691691
* @see http://en.wikipedia.org/wiki/Swedish_rounding
692692
* @see http://www.docjar.com/html/api/com/ibm/icu/util/Currency.java.html#1007

0 commit comments

Comments
 (0)