Skip to content

Commit

Permalink
[FrameworkBundle] Fix service reset between tests
Browse files Browse the repository at this point in the history
  • Loading branch information
HypeMC committed Sep 12, 2024
1 parent 8c946c5 commit 23eb9f3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Container.php
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,6 @@ public function initialized(string $id)
public function reset()
{
$services = $this->services + $this->privates;
$this->services = $this->factories = $this->privates = [];

foreach ($services as $service) {
try {
Expand All @@ -310,6 +309,8 @@ public function reset()
continue;
}
}

$this->services = $this->factories = $this->privates = [];
}

/**
Expand Down

0 comments on commit 23eb9f3

Please sign in to comment.