Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d33b6c5

Browse files
minor #22846 [FrameworkBundle][Translation] fix docblock position (xabbuh)
This PR was merged into the 3.3 branch. Discussion ---------- [FrameworkBundle][Translation] fix docblock position | Q | A | ------------- | --- | Branch? | 3.3 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #22822 | License | MIT | Doc PR | The `$defaultLocale` argument is present in the `Translator` class of the FrameworkBundle, but is not part of the Translation component. Commits ------- 0829964 fix docblock position
2 parents 40b1733 + 0829964 commit d33b6c5

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

src/Symfony/Bundle/FrameworkBundle/Translation/Translator.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,11 @@ class Translator extends BaseTranslator implements WarmableInterface
4848
* * debug: Whether to enable debugging or not (false by default)
4949
* * resource_files: List of translation resources available grouped by locale.
5050
*
51-
* @param ContainerInterface $container A ContainerInterface instance
52-
* @param MessageSelector $selector The message selector for pluralization
53-
* @param array $loaderIds An array of loader Ids
54-
* @param array $options An array of options
51+
* @param ContainerInterface $container A ContainerInterface instance
52+
* @param MessageSelector $selector The message selector for pluralization
53+
* @param string $defaultLocale
54+
* @param array $loaderIds An array of loader Ids
55+
* @param array $options An array of options
5556
*
5657
* @throws InvalidArgumentException
5758
*/

src/Symfony/Component/Translation/Translator.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,10 @@ class Translator implements TranslatorInterface, TranslatorBagInterface
7474
/**
7575
* Constructor.
7676
*
77-
* @param string $locale The locale
78-
* @param MessageSelector|null $selector The message selector for pluralization
79-
* @param string $defaultLocale
80-
* @param string|null $cacheDir The directory to use for the cache
81-
* @param bool $debug Use cache in debug mode ?
77+
* @param string $locale The locale
78+
* @param MessageSelector|null $selector The message selector for pluralization
79+
* @param string|null $cacheDir The directory to use for the cache
80+
* @param bool $debug Use cache in debug mode ?
8281
*
8382
* @throws InvalidArgumentException If a locale contains invalid characters
8483
*/

0 commit comments

Comments
 (0)