Skip to content

Commit 75dd64a

Browse files
committed
Fix loadFromDirectory error
1 parent 315fe66 commit 75dd64a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/LiveCodeCoverage/Storage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public static function loadFromDirectory($storageDirectory)
4040
{
4141
Assert::string($storageDirectory);
4242

43-
$coverage = new CodeCoverage();
43+
$coverage = CodeCoverageFactory::createDefault();
4444

4545
if (!is_dir($storageDirectory)) {
4646
return $coverage;

0 commit comments

Comments
 (0)