From ce324483e22a7aceede37742cae0e007609c701b Mon Sep 17 00:00:00 2001 From: Hubert Lenoir Date: Wed, 21 Jul 2021 15:47:11 +0200 Subject: [PATCH] Remove duplicate collector calls --- Collector/MigrationsCollector.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Collector/MigrationsCollector.php b/Collector/MigrationsCollector.php index 408becb..9675a09 100644 --- a/Collector/MigrationsCollector.php +++ b/Collector/MigrationsCollector.php @@ -25,6 +25,10 @@ public function __construct(DependencyFactory $dependencyFactory, MigrationsFlat public function collect(Request $request, Response $response, \Throwable $exception = null) { + if (!empty($this->data)) { + return; + } + $metadataStorage = $this->dependencyFactory->getMetadataStorage(); $planCalculator = $this->dependencyFactory->getMigrationPlanCalculator();