Skip to content

Commit b1abf56

Browse files
committed
Merge branch '2.7' into 2.8
* 2.7: Fix minor phpdoc mismatches with the code(detected by phan) [Asset] Starting slash should indicate no basePath wanted [Security] Fix phpdoc logout listener Fix minor typo in the main README.md
2 parents 5e04599 + 784495a commit b1abf56

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
@@ -135,7 +135,7 @@ public function formatReplace($dateChars, $dateTime)
135135
* @param \DateTime $dateTime A configured DateTime object to use to perform the date calculation
136136
* @param string $value String to convert to a time value
137137
*
138-
* @return int The corresponding Unix timestamp
138+
* @return int|false The corresponding Unix timestamp
139139
*
140140
* @throws \InvalidArgumentException When the value can not be matched with pattern
141141
*/

DateFormatter/IntlDateFormatter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ public function getPattern()
350350
/**
351351
* Returns the formatter's time type.
352352
*
353-
* @return string The time type used by the formatter
353+
* @return int The time type used by the formatter
354354
*
355355
* @see http://www.php.net/manual/en/intldateformatter.gettimetype.php
356356
*/
@@ -435,7 +435,7 @@ public function localtime($value, &$position = 0)
435435
* contain -1 otherwise it will contain the position at which parsing
436436
* ended. If $parse_pos > strlen($value), the parse fails immediately.
437437
*
438-
* @return string Parsed value as a timestamp
438+
* @return int Parsed value as a timestamp
439439
*
440440
* @see http://www.php.net/manual/en/intldateformatter.parse.php
441441
*

Locale/Locale.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,5 +317,7 @@ public static function setDefault($locale)
317317
if ('en' !== $locale) {
318318
throw new MethodNotImplementedException(__METHOD__);
319319
}
320+
321+
return true;
320322
}
321323
}

NumberFormatter/NumberFormatter.php

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

0 commit comments

Comments
 (0)