Skip to content

Commit

Permalink
Fix loadFromDirectory error
Browse files Browse the repository at this point in the history
  • Loading branch information
adrienbrault committed Oct 14, 2020
1 parent 315fe66 commit 75dd64a
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 75dd64a

Please sign in to comment.