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/tests
diff options
context:
space:
mode:
authorStefan Giehl <stefan@matomo.org>2020-12-16 02:33:03 +0300
committerGitHub <noreply@github.com>2020-12-16 02:33:03 +0300
commit2a7b481db3bef1818a8aa2654a59eefdae75652a (patch)
treeec44af4460bb2700b08e97e6d2f4f7b64150f9f1 /tests
parent023b5e22553fec71d8f84bc6405c866bd889177e (diff)
fix: reset(): Argument #1 ($array) must be passed by reference, value given (#16960)
Diffstat (limited to 'tests')
-rw-r--r--tests/PHPUnit/Integration/DataAccess/ArchiveInvalidatorTest.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/PHPUnit/Integration/DataAccess/ArchiveInvalidatorTest.php b/tests/PHPUnit/Integration/DataAccess/ArchiveInvalidatorTest.php
index 784146ce4f..8d1e75db00 100644
--- a/tests/PHPUnit/Integration/DataAccess/ArchiveInvalidatorTest.php
+++ b/tests/PHPUnit/Integration/DataAccess/ArchiveInvalidatorTest.php
@@ -1715,8 +1715,7 @@ class ArchiveInvalidatorTest extends IntegrationTestCase
foreach (ArchiveTableCreator::getTablesArchivesInstalled(ArchiveTableCreator::NUMERIC_TABLE) as $table) {
$date = ArchiveTableCreator::getDateFromTableName($table);
- $idArchives = Db::fetchAll("SELECT idarchive FROM $table WHERE name LIKE 'done%' AND value = ?", array(ArchiveWriter::DONE_INVALIDATED));
- $idArchives = array_map('reset', $idArchives);
+ $idArchives = Db::query("SELECT idarchive FROM $table WHERE name LIKE 'done%' AND value = ?", array(ArchiveWriter::DONE_INVALIDATED))->fetchAll(\Zend_Db::FETCH_COLUMN);
$result[$date] = $idArchives;
}
@@ -1734,8 +1733,7 @@ class ArchiveInvalidatorTest extends IntegrationTestCase
$sql .= " AND ts_archived IS NOT NULL";
}
- $archiveSpecs = Db::fetchAll($sql, array(ArchiveWriter::DONE_INVALIDATED));
- $archiveSpecs = array_map('reset', $archiveSpecs);
+ $archiveSpecs = Db::query($sql, array(ArchiveWriter::DONE_INVALIDATED))->fetchAll(\Zend_Db::FETCH_COLUMN);
if (empty($archiveSpecs)) {
continue;
}