Skip to content

Commit 520fc55

Browse files
committed
Merge branch '5.4' into 6.4
* 5.4: [HttpClient] Fix setting CURLMOPT_MAXCONNECTS throw a meaningful exception when parsing dotenv files with BOM [Cache] Fix RedisSentinel params types [FrameworkBundle] Fix service reset between tests [Uid][Serializer][Validator] Mention RFC 9562 make sure temp files can be cleaned up on Windows
2 parents e93c836 + 23eb9f3 commit 520fc55

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Container.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,6 @@ public function initialized(string $id): bool
288288
public function reset()
289289
{
290290
$services = $this->services + $this->privates;
291-
$this->services = $this->factories = $this->privates = [];
292291

293292
foreach ($services as $service) {
294293
try {
@@ -299,6 +298,8 @@ public function reset()
299298
continue;
300299
}
301300
}
301+
302+
$this->services = $this->factories = $this->privates = [];
302303
}
303304

304305
/**

0 commit comments

Comments
 (0)