Skip to content

Commit

Permalink
Merge pull request geekwright#4 from geekwright/versioncheck
Browse files Browse the repository at this point in the history
Tweak PHP version check
  • Loading branch information
geekwright authored May 1, 2023
2 parents c87227e + 272c4ac commit 5948ac1
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 5948ac1

Please sign in to comment.