Skip to content

Commit

Permalink
Remove @throws tags from I18n functions.
Browse files Browse the repository at this point in the history
Closes #12346.
  • Loading branch information
ADmad committed Jul 16, 2018
1 parent a973625 commit e83159f
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/I18n/functions.php
Expand Up @@ -21,7 +21,6 @@
* @param string $singular Text to translate.
* @param array ...$args Array with arguments or multiple arguments in function.
* @return string|null The translated text, or null if invalid.
* @throws \Aura\Intl\Exception
* @link https://book.cakephp.org/3.0/en/core-libraries/global-constants-and-functions.html#__
*/
function __($singular, ...$args)
Expand All @@ -48,7 +47,6 @@ function __($singular, ...$args)
* @param int $count Count.
* @param array ...$args Array with arguments or multiple arguments in function.
* @return string|null Plural form of translated string, or null if invalid.
* @throws \Aura\Intl\Exception
* @link https://book.cakephp.org/3.0/en/core-libraries/global-constants-and-functions.html#__n
*/
function __n($singular, $plural, $count, ...$args)
Expand Down Expand Up @@ -76,7 +74,6 @@ function __n($singular, $plural, $count, ...$args)
* @param string $msg String to translate.
* @param array ...$args Array with arguments or multiple arguments in function.
* @return string|null Translated string.
* @throws \Aura\Intl\Exception
* @link https://book.cakephp.org/3.0/en/core-libraries/global-constants-and-functions.html#__d
*/
function __d($domain, $msg, ...$args)
Expand Down Expand Up @@ -105,7 +102,6 @@ function __d($domain, $msg, ...$args)
* @param int $count Count.
* @param array ...$args Array with arguments or multiple arguments in function.
* @return string|null Plural form of translated string.
* @throws \Aura\Intl\Exception
* @link https://book.cakephp.org/3.0/en/core-libraries/global-constants-and-functions.html#__dn
*/
function __dn($domain, $singular, $plural, $count, ...$args)
Expand Down Expand Up @@ -135,7 +131,6 @@ function __dn($domain, $singular, $plural, $count, ...$args)
* @param string $singular Text to translate.
* @param array ...$args Array with arguments or multiple arguments in function.
* @return string|null Translated string.
* @throws \Aura\Intl\Exception
* @link https://book.cakephp.org/3.0/en/core-libraries/global-constants-and-functions.html#__x
*/
function __x($context, $singular, ...$args)
Expand Down Expand Up @@ -165,7 +160,6 @@ function __x($context, $singular, ...$args)
* @param int $count Count.
* @param array ...$args Array with arguments or multiple arguments in function.
* @return string|null Plural form of translated string.
* @throws \Aura\Intl\Exception
* @link https://book.cakephp.org/3.0/en/core-libraries/global-constants-and-functions.html#__xn
*/
function __xn($context, $singular, $plural, $count, ...$args)
Expand Down Expand Up @@ -196,7 +190,6 @@ function __xn($context, $singular, $plural, $count, ...$args)
* @param string $msg String to translate.
* @param array ...$args Array with arguments or multiple arguments in function.
* @return string|null Translated string.
* @throws \Aura\Intl\Exception
* @link https://book.cakephp.org/3.0/en/core-libraries/global-constants-and-functions.html#__dx
*/
function __dx($domain, $context, $msg, ...$args)
Expand Down Expand Up @@ -230,7 +223,6 @@ function __dx($domain, $context, $msg, ...$args)
* @param int $count Count.
* @param array ...$args Array with arguments or multiple arguments in function.
* @return string|null Plural form of translated string.
* @throws \Aura\Intl\Exception
* @link https://book.cakephp.org/3.0/en/core-libraries/global-constants-and-functions.html#__dxn
*/
function __dxn($domain, $context, $singular, $plural, $count, ...$args)
Expand Down

0 comments on commit e83159f

Please sign in to comment.