Skip to content

Commit

Permalink
Merge pull request #18 from adrienbrault/fix-load-from-directory
Browse files Browse the repository at this point in the history
Fix loadFromDirectory error
  • Loading branch information
matthiasnoback authored Oct 14, 2020
2 parents 315fe66 + 75dd64a commit 04a8fdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/LiveCodeCoverage/Storage.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public static function loadFromDirectory($storageDirectory)
{
Assert::string($storageDirectory);

$coverage = new CodeCoverage();
$coverage = CodeCoverageFactory::createDefault();

if (!is_dir($storageDirectory)) {
return $coverage;
Expand Down

0 comments on commit 04a8fdd

Please sign in to comment.