Skip to content

Commit

Permalink
Add null to returnable type
Browse files Browse the repository at this point in the history
  • Loading branch information
bencroker committed Apr 3, 2024
1 parent 383ac29 commit 0074aca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/services/ExpireCacheService.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function getExpiredCacheIds(): array
/**
* Returns an expired cache ID with the provided site URI.
*/
public function getExpiredCacheId(SiteUriModel $siteUri): int|false
public function getExpiredCacheId(SiteUriModel $siteUri): int|false|null
{
return CacheRecord::find()
->select('id')
Expand Down
2 changes: 1 addition & 1 deletion src/services/RefreshCacheService.php
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ public function refreshExpiredSiteUri(SiteUriModel $siteUri): void
{
$cacheId = Blitz::$plugin->expireCache->getExpiredCacheId($siteUri);

if ($cacheId === false) {
if (empty($cacheId)) {
return;
}

Expand Down

0 comments on commit 0074aca

Please sign in to comment.