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:
authorMatthieu Napoli <matthieu@mnapoli.fr>2015-02-16 07:58:53 +0300
committerMatthieu Napoli <matthieu@mnapoli.fr>2015-02-16 08:07:45 +0300
commitcec6ca0aa94f5aa1a6731dc90b298266cc05938f (patch)
tree784397ee9c5955ed1670dbdbefe8c3762a4cd110 /core/Config.php
parentc89a3aaeafd7f5d7dc14cafaa9e7e89d8241e1fb (diff)
Fix warning detected by Scrutinizer:
Since getLocalConfigInfoForHostname() is declared private, calling it with static will lead to errors in possible sub-classes. You can either use self, or increase the visibility of commandExists() to at least protected.
Diffstat (limited to 'core/Config.php')
-rw-r--r--core/Config.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Config.php b/core/Config.php
index d6c2598819..fc35522c84 100644
--- a/core/Config.php
+++ b/core/Config.php
@@ -281,7 +281,7 @@ class Config extends Singleton
*/
public function forceUsageOfLocalHostnameConfig($hostname)
{
- $hostConfig = static::getLocalConfigInfoForHostname($hostname);
+ $hostConfig = self::getLocalConfigInfoForHostname($hostname);
if (!Filesystem::isValidFilename($hostConfig['file'])) {
throw new Exception('Hostname is not valid');