Skip to content

Commit 23eb9f3

Browse files
committed
[FrameworkBundle] Fix service reset between tests
1 parent 8c946c5 commit 23eb9f3

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
@@ -299,7 +299,6 @@ public function initialized(string $id)
299299
public function reset()
300300
{
301301
$services = $this->services + $this->privates;
302-
$this->services = $this->factories = $this->privates = [];
303302

304303
foreach ($services as $service) {
305304
try {
@@ -310,6 +309,8 @@ public function reset()
310309
continue;
311310
}
312311
}
312+
313+
$this->services = $this->factories = $this->privates = [];
313314
}
314315

315316
/**

0 commit comments

Comments
 (0)