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
path: root/config
diff options
context:
space:
mode:
authorStefan Giehl <stefan@matomo.org>2021-12-21 11:27:52 +0300
committerGitHub <noreply@github.com>2021-12-21 11:27:52 +0300
commit29dabc0f6d3069b01d85a6d0b7b5637c31bc181e (patch)
treedebb3761bf19a30249ac851d840cacc776fc5441 /config
parent338f67e5e2c1ea42253a6b54643c50ddb6fc660a (diff)
Fixes more issues on PHP 8.1 (#18514)
* fixes deprecation warning in ui-test.php /srv/matomo/config/environment/ui-test.php(53): Deprecated - str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated * fixes deprecation warning caused by SettingsPiwik.php /srv/matomo/plugins/UsersManager/Controller.php(669): Deprecated - md5(): Passing null to parameter #1 ($string) of type string is deprecated * Fixes deprecation warning in ComparisonRowGenerator.php /srv/matomo/plugins/API/Filter/DataComparisonFilter/ComparisonRowGenerator.php(129): Deprecated - Automatic conversion of false to array is deprecated * Fixes type error in Sparklines.php Uncaught exception: TypeError: array_diff(): Argument #1 ($array) must be of type array, string given in /srv/matomo/plugins/CoreVisualizations/Visualizations/Sparklines.php:306 * Fixes some warnings in DisablePluginArchive fixture /srv/matomo/tests/PHPUnit/Fixtures/DisablePluginArchive.php(59): Warning - Undefined property: Piwik\Tests\Fixtures\DisablePluginArchive::$useThirdPartyCookies /srv/matomo/tests/PHPUnit/Fixtures/DisablePluginArchive.php(74): Warning - Undefined property: Piwik\Tests\Fixtures\DisablePluginArchive::$useSiteSearch /srv/matomo/tests/PHPUnit/Fixtures/DisablePluginArchive.php(75): Warning - Undefined property: Piwik\Tests\Fixtures\DisablePluginArchive::$useSiteSearch /srv/matomo/tests/PHPUnit/Fixtures/DisablePluginArchive.php(76): Warning - Undefined property: Piwik\Tests\Fixtures\DisablePluginArchive::$useSiteSearch /srv/matomo/tests/PHPUnit/Fixtures/DisablePluginArchive.php(132): Warning - Undefined property: Piwik\Tests\Fixtures\DisablePluginArchive::$useSiteSearch * Fixes undefined array key warningin SitesManager.php /srv/matomo/plugins/SitesManager/SitesManager.php(376): Warning - Undefined array key unknown
Diffstat (limited to 'config')
-rw-r--r--config/environment/ui-test.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/environment/ui-test.php b/config/environment/ui-test.php
index 3e4c9a6d41..49126b20b6 100644
--- a/config/environment/ui-test.php
+++ b/config/environment/ui-test.php
@@ -50,7 +50,7 @@ return array(
}
// remove PIWIK_INCLUDE_PATH from result so tests don't change based on the machine used
- $result = str_replace(realpath(PIWIK_INCLUDE_PATH), '', $result);
+ $result = str_replace(realpath(PIWIK_INCLUDE_PATH), '', $result ?? '');
})),
array('Controller.RssWidget.rssPiwik.end', DI\value(function (&$result, $parameters) {