Skip to content

Commit a7da51a

Browse files
committed
Instantiate the log provider through the static create function
1 parent f290d27 commit a7da51a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Cli/AnalyzeCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ private function createLogCollector(array $config, VampireIndex $vampireIndex):
119119
}
120120

121121
/** @var LogProviderInterface $logReader */
122-
$logReader = $reflectionClass->newInstance();
122+
$logReader = $reflectionClass->getMethod('create')->invoke(null, $config, $this->output);
123123
$logProviders[] = $logReader;
124124
}
125125

0 commit comments

Comments
 (0)