File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -27,9 +27,9 @@ class ArrayCachePool extends AbstractCachePool
2727 /**
2828 * @param array $cache
2929 */
30- public function __construct (array $ cache = [])
30+ public function __construct (array & $ cache = [])
3131 {
32- $ this ->cache = $ cache ;
32+ $ this ->cache = & $ cache ;
3333 }
3434
3535 protected function fetchObjectFromCache ($ key )
Original file line number Diff line number Diff line change 1616
1717class IntegrationPoolTest extends CachePoolTest
1818{
19+ private $ cacheArray = [];
20+
1921 public function createCachePool ()
2022 {
21- return new ArrayCachePool ();
23+ return new ArrayCachePool ($ this -> cacheArray );
2224 }
2325}
Original file line number Diff line number Diff line change 1616
1717class IntegrationTagTest extends TaggableCachePoolTest
1818{
19- private $ cache = [];
19+ private $ cacheArray = [];
2020
2121 public function createCachePool ()
2222 {
23- return new ArrayCachePool ($ this ->cache );
23+ return new ArrayCachePool ($ this ->cacheArray );
2424 }
2525}
You can’t perform that action at this time.
0 commit comments