From cf775a391af3b0f655a7dd0574c8f5bedb569084 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Sat, 12 Apr 2014 19:54:57 +0200 Subject: [PATCH] made phpdoc types consistent with those defined in Hack --- Interval.php | 2 +- Loader/MoFileLoader.php | 2 +- Loader/XliffFileLoader.php | 2 +- MessageSelector.php | 2 +- PluralizationRules.php | 2 +- Tests/PluralizationRulesTest.php | 2 +- TranslatorInterface.php | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Interval.php b/Interval.php index 033b0188..b9f071c6 100644 --- a/Interval.php +++ b/Interval.php @@ -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 diff --git a/Loader/MoFileLoader.php b/Loader/MoFileLoader.php index e3cad7f7..3902ec3a 100644 --- a/Loader/MoFileLoader.php +++ b/Loader/MoFileLoader.php @@ -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) diff --git a/Loader/XliffFileLoader.php b/Loader/XliffFileLoader.php index f46b5dfe..a86b02c2 100644 --- a/Loader/XliffFileLoader.php +++ b/Loader/XliffFileLoader.php @@ -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 */ diff --git a/MessageSelector.php b/MessageSelector.php index 8b416e94..1802d16e 100644 --- a/MessageSelector.php +++ b/MessageSelector.php @@ -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 diff --git a/PluralizationRules.php b/PluralizationRules.php index fe29ba59..3cd978d7 100644 --- a/PluralizationRules.php +++ b/PluralizationRules.php @@ -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 diff --git a/Tests/PluralizationRulesTest.php b/Tests/PluralizationRulesTest.php index 26f9e2f9..03815354 100644 --- a/Tests/PluralizationRulesTest.php +++ b/Tests/PluralizationRulesTest.php @@ -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) { diff --git a/TranslatorInterface.php b/TranslatorInterface.php index 3dcdd4fc..a97fd10b 100644 --- a/TranslatorInterface.php +++ b/TranslatorInterface.php @@ -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