Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Giehl <stefan@matomo.org>2021-08-11 02:53:35 +0300
committerGitHub <noreply@github.com>2021-08-11 02:53:35 +0300
commit1156eb9a5f1deadb05613ae0ab982faab9b1f5a3 (patch)
tree860d26b6de1a3d642ceeedce833d2c9c6fa8c95d /core/AssetManager
parent107a97b6cfd1982886183917e7eed95ca13efc14 (diff)
Fix a couple a possible warning in PHP 8.1 (#17869)
Diffstat (limited to 'core/AssetManager')
-rw-r--r--core/AssetManager/UIAssetCacheBuster.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/AssetManager/UIAssetCacheBuster.php b/core/AssetManager/UIAssetCacheBuster.php
index b63de3f462..a503ebc826 100644
--- a/core/AssetManager/UIAssetCacheBuster.php
+++ b/core/AssetManager/UIAssetCacheBuster.php
@@ -32,7 +32,7 @@ class UIAssetCacheBuster extends Singleton
if (empty($cachedCacheBuster) || $pluginNames !== false) {
$masterFile = PIWIK_INCLUDE_PATH . '/.git/refs/heads/master';
- $currentGitHash = file_exists($masterFile) ? @file_get_contents($masterFile) : null;
+ $currentGitHash = file_exists($masterFile) ? @file_get_contents($masterFile) : '';
$manager = Manager::getInstance();
$plugins = !$pluginNames ? $manager->getActivatedPlugins() : $pluginNames;