Skip to content

Commit

Permalink
Fix PHP Unit Warning: Jelix AppContextInterface getCache can be null
Browse files Browse the repository at this point in the history
  • Loading branch information
rldhont committed Dec 5, 2024
1 parent a4f5717 commit 595edd3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lizmap/modules/lizmap/lib/Project/ProjectCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ public function retrieveProjectData()
try {
$data = $this->appContext->getCache($this->fileKey, $this->profile);
if ($data === false
|| is_null($data)
|| $data['qgsmtime'] < $this->qgsMtime
|| $data['qgscfgmtime'] < $this->qgsCfgMtime
|| !isset($data['format_version'])
Expand Down

0 comments on commit 595edd3

Please sign in to comment.