diff options
author | Lukas Winkler <git@lw1.at> | 2021-08-02 12:57:35 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-02 12:57:35 +0300 |
commit | f21acfe280b284b09c96e8b77794ac9cf74dc332 (patch) | |
tree | f641e1d8122d2641b486925393008cb36adeb855 /libs | |
parent | 44daea1eacb691985669e25fdf7c2ff08de752b9 (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.php | 2 |
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; |