From d367655c6d77d2e728a765c7d91f8db6c011f47e Mon Sep 17 00:00:00 2001 From: rugk Date: Mon, 18 Jul 2016 18:46:41 +0200 Subject: [PATCH] Fix build Thanks https://stackoverflow.com/questions/12346876/php-foreach-that-returns-keys-only#12346910 --- tst/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tst/model.php b/tst/model.php index e7aef4b..073d84f 100644 --- a/tst/model.php +++ b/tst/model.php @@ -236,7 +236,7 @@ class modelTest extends PHPUnit_Framework_TestCase $this->assertTrue($store->exists($ids[$key]), "paste $key exists after storing it"); } $this->_model->purge(10); - foreach ($ids as $key) + foreach (array_keys($ids) as $key) { if (in_array($key, array('x', 'y', 'z'))) {