Skip to content

Commit ae7ff2f

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 f3c41dc + 4a0b158 commit ae7ff2f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Routing/DelegatingLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public function load($resource, $type = null)
7878
if ($controller = $route->getDefault('_controller')) {
7979
try {
8080
$controller = $this->parser->parse($controller);
81-
} catch (\Exception $e) {
81+
} catch (\InvalidArgumentException $e) {
8282
// unable to optimize unknown notation
8383
}
8484

Translation/PhpExtractor.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,9 +182,9 @@ protected function parseTokens($tokens, MessageCatalogue $catalog)
182182
/**
183183
* @param string $file
184184
*
185-
* @throws \InvalidArgumentException
186-
*
187185
* @return bool
186+
*
187+
* @throws \InvalidArgumentException
188188
*/
189189
protected function canBeExtracted($file)
190190
{

0 commit comments

Comments
 (0)