Skip to content

Commit a72e2d3

Browse files
authored
No need to instantiate the fixture again
1 parent 916f9ce commit a72e2d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Service/FixtureService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ private function loadFixtureClass($className)
190190
return;
191191
}
192192

193-
$this->loader->addFixture(new $className());
193+
$this->loader->addFixture($fixture);
194194

195195
if ($fixture instanceof DependentFixtureInterface) {
196196
foreach ($fixture->getDependencies() as $dependency) {

0 commit comments

Comments
 (0)