File tree 3 files changed +7
-5
lines changed
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
27
27
/**
28
28
* @param array $cache
29
29
*/
30
- public function __construct (array $ cache = [])
30
+ public function __construct (array & $ cache = [])
31
31
{
32
- $ this ->cache = $ cache ;
32
+ $ this ->cache = & $ cache ;
33
33
}
34
34
35
35
protected function fetchObjectFromCache ($ key )
Original file line number Diff line number Diff line change 16
16
17
17
class IntegrationPoolTest extends CachePoolTest
18
18
{
19
+ private $ cacheArray = [];
20
+
19
21
public function createCachePool ()
20
22
{
21
- return new ArrayCachePool ();
23
+ return new ArrayCachePool ($ this -> cacheArray );
22
24
}
23
25
}
Original file line number Diff line number Diff line change 16
16
17
17
class IntegrationTagTest extends TaggableCachePoolTest
18
18
{
19
- private $ cache = [];
19
+ private $ cacheArray = [];
20
20
21
21
public function createCachePool ()
22
22
{
23
- return new ArrayCachePool ($ this ->cache );
23
+ return new ArrayCachePool ($ this ->cacheArray );
24
24
}
25
25
}
You can’t perform that action at this time.
0 commit comments