Skip to content

Commit c5c89de

Browse files
Fix fatal error when no cache provided in constructor
1 parent 68cb064 commit c5c89de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CssFromHTMLExtractor.php

Lines changed: 1 addition & 1 deletion
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)