Skip to content

Commit bd8de54

Browse files
authored
Merge pull request #2 from ruudk/patch-1
No need to instantiate the fixture again
2 parents 916f9ce + a72e2d3 commit bd8de54

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)