Skip to content

Commit

Permalink
Merge pull request #10 from krzysztof-pyrzyk-ah/bugifx/fatal-error-wh…
Browse files Browse the repository at this point in the history
…en-no-result-cache-provided

Fix fatal error when no cache provided in constructor
  • Loading branch information
JanDC authored Apr 17, 2018
2 parents 68cb064 + c5c89de commit 5038729
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CssFromHTMLExtractor.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public function __construct(Cache $resultCache = null)
$this->cssConverter = new CssSelectorConverter();

$this->resultCache = is_null($resultCache) ? new ArrayCache() : $resultCache;
$this->cachedRules = (array)$resultCache->fetch('cachedRules');
$this->cachedRules = (array)$this->resultCache->fetch('cachedRules');
}

public function getCssStore()
Expand Down

0 comments on commit 5038729

Please sign in to comment.