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/libs
diff options
context:
space:
mode:
authorStefan Giehl <stefan@matomo.org>2021-11-24 22:37:11 +0300
committerGitHub <noreply@github.com>2021-11-24 22:37:11 +0300
commitaf4d6002ca0039f4ea702aa8456f7e0c1cc3746c (patch)
treea4eff4aee35b5decb9fac3e6e9ddcf525fcea841 /libs
parent6ddf4edf640b3ccb4f8a7a5797d2762bab1ea682 (diff)
Further improvements for PHP 8.1 (#18330)
* Fix some PHP8.1 deprecation warnings * another fix * couple more fixes * couple more fixes * fix another warning
Diffstat (limited to 'libs')
-rw-r--r--libs/Zend/Db/Adapter/Pdo/Abstract.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/Zend/Db/Adapter/Pdo/Abstract.php b/libs/Zend/Db/Adapter/Pdo/Abstract.php
index 9e80590f67..987cd263d9 100644
--- a/libs/Zend/Db/Adapter/Pdo/Abstract.php
+++ b/libs/Zend/Db/Adapter/Pdo/Abstract.php
@@ -123,9 +123,9 @@ abstract class Zend_Db_Adapter_Pdo_Abstract extends Zend_Db_Adapter_Abstract
try {
$this->_connection = new PDO(
$dsn,
- $this->_config['username'],
- $this->_config['password'],
- $this->_config['driver_options']
+ $this->_config['username'] ?? null,
+ $this->_config['password'] ?? null,
+ $this->_config['driver_options'] ?? null
);
$this->_profiler->queryEnd($q);