Skip to content

Commit

Permalink
Tweak PHP version check
Browse files Browse the repository at this point in the history
  • Loading branch information
geekwright committed May 1, 2023
1 parent c87227e commit 272c4ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PublicSuffixList.php
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ protected function readCachedPSL($url)
$cacheFile = $this->getCacheFileName($url);
if (file_exists($cacheFile)) {
$cachedTree = file_get_contents($cacheFile);
if(PHP_VERSION_ID < 070000) {
if((int) PHP_VERSION_ID < 70000) {
return unserialize($cachedTree);
}
return unserialize($cachedTree, array('allowed_classes' => false));
Expand Down

0 comments on commit 272c4ac

Please sign in to comment.