Skip to content

Commit

Permalink
made phpdoc types consistent with those defined in Hack
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Apr 15, 2014
1 parent 300f344 commit cf775a3
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Interval.php
Expand Up @@ -36,7 +36,7 @@ class Interval
/**
* Tests if the given number is in the math interval.
*
* @param integer $number A number
* @param int $number A number
* @param string $interval An interval
*
* @return Boolean
Expand Down
2 changes: 1 addition & 1 deletion Loader/MoFileLoader.php
Expand Up @@ -169,7 +169,7 @@ private function parse($resource)
* Reads an unsigned long from stream respecting endianess.
*
* @param resource $stream
* @param boolean $isBigEndian
* @param bool $isBigEndian
* @return integer
*/
private function readLong($stream, $isBigEndian)
Expand Down
2 changes: 1 addition & 1 deletion Loader/XliffFileLoader.php
Expand Up @@ -124,7 +124,7 @@ private function parseFile($file)
/**
* Returns the XML errors of the internal XML parser
*
* @param Boolean $internalErrors
* @param bool $internalErrors
*
* @return array An array of errors
*/
Expand Down
2 changes: 1 addition & 1 deletion MessageSelector.php
Expand Up @@ -40,7 +40,7 @@ class MessageSelector
* {0} There are no apples|one: There is one apple|more: There are %count% apples
*
* @param string $message The message being translated
* @param integer $number The number of items represented for the message
* @param int $number The number of items represented for the message
* @param string $locale The locale to use for choosing
*
* @return string
Expand Down
2 changes: 1 addition & 1 deletion PluralizationRules.php
Expand Up @@ -24,7 +24,7 @@ class PluralizationRules
/**
* Returns the plural position to use for the given locale and number.
*
* @param integer $number The number
* @param int $number The number
* @param string $locale The locale
*
* @return integer The plural position
Expand Down
2 changes: 1 addition & 1 deletion Tests/PluralizationRulesTest.php
Expand Up @@ -95,7 +95,7 @@ public function failingLangcodes()
*
* @param string $nplural plural expected
* @param array $matrix containing langcodes and their plural index values.
* @param boolean $expectSuccess
* @param bool $expectSuccess
*/
protected function validateMatrix($nplural, $matrix, $expectSuccess = true)
{
Expand Down
2 changes: 1 addition & 1 deletion TranslatorInterface.php
Expand Up @@ -38,7 +38,7 @@ public function trans($id, array $parameters = array(), $domain = null, $locale
* Translates the given choice message by choosing a translation according to a number.
*
* @param string $id The message id (may also be an object that can be cast to string)
* @param integer $number The number to use to find the indice of the message
* @param int $number The number to use to find the indice of the message
* @param array $parameters An array of parameters for the message
* @param string $domain The domain for the message
* @param string $locale The locale
Expand Down

0 comments on commit cf775a3

Please sign in to comment.