Skip to content

Commit 44b29c1

Browse files
authored
Merge pull request #435 from Jean-Beru/patch-2
Remove duplicate collector calls
2 parents 28df086 + ce32448 commit 44b29c1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Collector/MigrationsCollector.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ public function __construct(DependencyFactory $dependencyFactory, MigrationsFlat
2525

2626
public function collect(Request $request, Response $response, \Throwable $exception = null)
2727
{
28+
if (!empty($this->data)) {
29+
return;
30+
}
31+
2832
$metadataStorage = $this->dependencyFactory->getMetadataStorage();
2933
$planCalculator = $this->dependencyFactory->getMigrationPlanCalculator();
3034

0 commit comments

Comments
 (0)