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>2022-05-17 15:07:09 +0300
committerGitHub <noreply@github.com>2022-05-17 15:07:09 +0300
commit3860159eaa190561896dcade11268193b4b4630b (patch)
tree22c0e3f4d21a0b79f66aaa0b82b2defa36da0895 /plugins/CoreAdminHome
parent0acc68778bcb18931b1f74f3374e85832fe2fee1 (diff)
Compatibility fixes for PHP 8.1 (#19143)
* Update .travis.yml * fix php 8.1 deprecation notices * Revert "run report tests on any PHP version (#18666)" This reverts commit ec58ab4606cbc6c7f7c3a7aa7f1e9cc5a88e5dfb. * apply PSR12 code formatting * fix deprecation notice * try to fix test * fix frontcontroller test * Clearing output buffers with enabled output compression makes problems on some PHP versions * Set the mysqli error reporting to none, to prevent possible problems on PHP 8.1
Diffstat (limited to 'plugins/CoreAdminHome')
-rw-r--r--plugins/CoreAdminHome/Commands/ConfigDelete.php2
-rw-r--r--plugins/CoreAdminHome/Commands/ConfigGet.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/CoreAdminHome/Commands/ConfigDelete.php b/plugins/CoreAdminHome/Commands/ConfigDelete.php
index 7d3c5b243e..3e72bdce54 100644
--- a/plugins/CoreAdminHome/Commands/ConfigDelete.php
+++ b/plugins/CoreAdminHome/Commands/ConfigDelete.php
@@ -77,7 +77,7 @@ NOTES:
'value' => $input->getOption('value'),
]);
- $argument = trim($input->getArgument('argument'));
+ $argument = trim($input->getArgument('argument') ?? '');
// Sanity check inputs.
switch (true) {
diff --git a/plugins/CoreAdminHome/Commands/ConfigGet.php b/plugins/CoreAdminHome/Commands/ConfigGet.php
index f302040728..dea5f37936 100644
--- a/plugins/CoreAdminHome/Commands/ConfigGet.php
+++ b/plugins/CoreAdminHome/Commands/ConfigGet.php
@@ -89,7 +89,7 @@ NOTES:
$format = self::OUTPUT_FORMAT_DEFAULT;
}
- $argument = trim($input->getArgument('argument'));
+ $argument = trim($input->getArgument('argument') ?? '');
// If there are multiple arguments, just use the last one.
$argument = array_slice(explode(' ', $argument), -1)[0];