Skip to content

Commit 5038729

Browse files
authored
Merge pull request #10 from krzysztof-pyrzyk-ah/bugifx/fatal-error-when-no-result-cache-provided
Fix fatal error when no cache provided in constructor
2 parents 68cb064 + c5c89de commit 5038729

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CssFromHTMLExtractor.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public function __construct(Cache $resultCache = null)
5656
$this->cssConverter = new CssSelectorConverter();
5757

5858
$this->resultCache = is_null($resultCache) ? new ArrayCache() : $resultCache;
59-
$this->cachedRules = (array)$resultCache->fetch('cachedRules');
59+
$this->cachedRules = (array)$this->resultCache->fetch('cachedRules');
6060
}
6161

6262
public function getCssStore()

0 commit comments

Comments
 (0)