Skip to content

Commit

Permalink
fix: happify phpstan in PagesCacheService
Browse files Browse the repository at this point in the history
  • Loading branch information
brotkrueml committed Feb 16, 2024
1 parent b096f82 commit 481c61b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion Classes/Cache/PagesCacheService.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function storeMarkupInCache(string $markup): void
$this->cache->set(
$this->getCacheIdentifier(),
$markup,
\array_merge(['pageId_' . $this->controller->page['uid']], $this->controller->getPageCacheTags()),
\array_merge(['pageId_' . ($this->controller->page['uid'] ?? 0)], $this->controller->getPageCacheTags()),
86400,
);
}
Expand Down
5 changes: 0 additions & 5 deletions phpstan.baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@ parameters:
count: 1
path: Classes/Cache/PagesCacheService.php

-
message: "#^Offset 'uid' does not exist on array\\|null\\.$#"
count: 1
path: Classes/Cache/PagesCacheService.php

-
message: "#^Instanceof between mixed and Brotkrueml\\\\Schema\\\\Core\\\\Model\\\\TypeInterface will always evaluate to false\\.$#"
count: 1
Expand Down

0 comments on commit 481c61b

Please sign in to comment.