Skip to content

Commit 860912a

Browse files
Merge branch '3.0' into 3.1
* 3.0: `@throws` annotations should go after `@return` Fix merge updated VERSION for 2.3.42 update CONTRIBUTORS for 2.3.42 updated CHANGELOG for 2.3.42 Revert "bug #18908 [DependencyInjection] force enabling the external XML entity loaders (xabbuh)" Partial revert of previous PR [DependencyInjection] Skip deep reference check for 'service_container' Catch \Throwable [Serializer] Add missing @throws annotations Fix for #18843 force enabling the external XML entity loaders Removed UTC specification with timestamp Conflicts: src/Symfony/Component/Yaml/Tests/InlineTest.php
2 parents 0e67031 + 2b0aaca commit 860912a

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

Extractor/AbstractFileExtractor.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ private function toSplFileInfo($file)
5454
/**
5555
* @param string $file
5656
*
57-
* @throws \InvalidArgumentException
58-
*
5957
* @return bool
58+
*
59+
* @throws \InvalidArgumentException
6060
*/
6161
protected function isFile($file)
6262
{

Loader/XliffFileLoader.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,8 @@ private function utf8ToCharset($content, $encoding = null)
165165
}
166166

167167
/**
168+
* Validates and parses the given file into a DOMDocument.
169+
*
168170
* @param string $file
169171
* @param \DOMDocument $dom
170172
* @param string $schema source of the schema

TranslatorBagInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ interface TranslatorBagInterface
2323
*
2424
* @param string|null $locale The locale or null to use the default
2525
*
26-
* @throws \InvalidArgumentException If the locale contains invalid characters
27-
*
2826
* @return MessageCatalogueInterface
27+
*
28+
* @throws \InvalidArgumentException If the locale contains invalid characters
2929
*/
3030
public function getCatalogue($locale = null);
3131
}

TranslatorInterface.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ interface TranslatorInterface
2626
* @param string|null $domain The domain for the message or null to use the default
2727
* @param string|null $locale The locale or null to use the default
2828
*
29-
* @throws \InvalidArgumentException If the locale contains invalid characters
30-
*
3129
* @return string The translated string
30+
*
31+
* @throws \InvalidArgumentException If the locale contains invalid characters
3232
*/
3333
public function trans($id, array $parameters = array(), $domain = null, $locale = null);
3434

@@ -41,9 +41,9 @@ public function trans($id, array $parameters = array(), $domain = null, $locale
4141
* @param string|null $domain The domain for the message or null to use the default
4242
* @param string|null $locale The locale or null to use the default
4343
*
44-
* @throws \InvalidArgumentException If the locale contains invalid characters
45-
*
4644
* @return string The translated string
45+
*
46+
* @throws \InvalidArgumentException If the locale contains invalid characters
4747
*/
4848
public function transChoice($id, $number, array $parameters = array(), $domain = null, $locale = null);
4949

0 commit comments

Comments
 (0)