Skip to content

Commit 8a1648d

Browse files
Merge branch '2.7' into 2.8
* 2.7: `@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/DependencyInjection/Tests/Dumper/PhpDumperTest.php src/Symfony/Component/Finder/Finder.php src/Symfony/Component/Security/Acl/Dbal/MutableAclProvider.php src/Symfony/Component/Security/Acl/Domain/ObjectIdentity.php src/Symfony/Component/Security/Acl/Model/AclInterface.php src/Symfony/Component/Security/Acl/Model/MutableAclProviderInterface.php src/Symfony/Component/Security/Acl/Permission/MaskBuilder.php src/Symfony/Component/Translation/Loader/XliffFileLoader.php src/Symfony/Component/Yaml/Tests/InlineTest.php
2 parents d60b8e0 + 8c8d476 commit 8a1648d

File tree

4 files changed

+11
-8
lines changed

4 files changed

+11
-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: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,10 +160,13 @@ private function utf8ToCharset($content, $encoding = null)
160160
}
161161

162162
/**
163+
* Validates and parses the given file into a DOMDocument.
164+
*
163165
* @param string $file
164166
* @param \DOMDocument $dom
165167
* @param string $schema source of the schema
166168
*
169+
* @throws \RuntimeException
167170
* @throws InvalidResourceException
168171
*/
169172
private function validateSchema($file, \DOMDocument $dom, $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)