Skip to content

Commit 4c85da8

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 023b80e + 285602f commit 4c85da8

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

DependencyInjection/ContainerAwareHttpKernel.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,11 @@ public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQ
7171
$this->container->set('request', null, 'request');
7272
$this->container->leaveScope('request');
7373

74+
throw $e;
75+
} catch (\Throwable $e) {
76+
$this->container->set('request', null, 'request');
77+
$this->container->leaveScope('request');
78+
7479
throw $e;
7580
}
7681

HttpCache/HttpCache.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -153,9 +153,9 @@ public function getKernel()
153153
/**
154154
* Gets the Surrogate instance.
155155
*
156-
* @throws \LogicException
157-
*
158156
* @return SurrogateInterface A Surrogate instance
157+
*
158+
* @throws \LogicException
159159
*/
160160
public function getSurrogate()
161161
{
@@ -169,10 +169,10 @@ public function getSurrogate()
169169
/**
170170
* Gets the Esi instance.
171171
*
172-
* @throws \LogicException
173-
*
174172
* @return Esi An Esi instance
175173
*
174+
* @throws \LogicException
175+
*
176176
* @deprecated since version 2.6, to be removed in 3.0. Use getSurrogate() instead
177177
*/
178178
public function getEsi()

0 commit comments

Comments
 (0)