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:
authorLukas Winkler <git@lw1.at>2021-08-02 12:57:35 +0300
committerGitHub <noreply@github.com>2021-08-02 12:57:35 +0300
commitf21acfe280b284b09c96e8b77794ac9cf74dc332 (patch)
treef641e1d8122d2641b486925393008cb36adeb855 /libs
parent44daea1eacb691985669e25fdf7c2ff08de752b9 (diff)
[PHP 8.1 compatibility] don't pass null to PDOStatement::fetch() (#17689)
* don't pass null to PDOStatement::fetch() * use FETCH_BOTH as default * do not set default value for $style it's set in the method if null was given Co-authored-by: Stefan Giehl <stefan@matomo.org>
Diffstat (limited to 'libs')
-rw-r--r--libs/Zend/Db/Statement/Pdo.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/Zend/Db/Statement/Pdo.php b/libs/Zend/Db/Statement/Pdo.php
index 4be698afe2..fb501eaf30 100644
--- a/libs/Zend/Db/Statement/Pdo.php
+++ b/libs/Zend/Db/Statement/Pdo.php
@@ -246,7 +246,7 @@ class Zend_Db_Statement_Pdo extends Zend_Db_Statement implements IteratorAggrega
* @return mixed Array, object, or scalar depending on fetch mode.
* @throws Zend_Db_Statement_Exception
*/
- public function fetch($style = null, $cursor = null, $offset = null)
+ public function fetch($style = null, $cursor = \PDO::FETCH_ORI_NEXT, $offset = 0)
{
if ($style === null) {
$style = $this->_fetchMode;