@@ -89,8 +89,8 @@ public function load($key, $fallback = NULL)
89
89
{
90
90
$ data = $ this ->storage ->read ($ this ->generateKey ($ key ));
91
91
if ($ data === NULL && $ fallback ) {
92
- return $ this ->save ($ key , function (& $ dependencies ) use ($ fallback ) {
93
- return call_user_func_array ($ fallback , [& $ dependencies ]);
92
+ return $ this ->save ($ key , function (&$ dependencies ) use ($ fallback ) {
93
+ return call_user_func_array ($ fallback , [&$ dependencies ]);
94
94
});
95
95
}
96
96
return $ data ;
@@ -119,8 +119,8 @@ public function bulkLoad(array $keys, $fallback = NULL)
119
119
if ($ fallback !== NULL ) {
120
120
foreach ($ result as $ key => $ value ) {
121
121
if ($ value === NULL ) {
122
- $ result [$ key ] = $ this ->save ($ key , function (& $ dependencies ) use ($ key , $ fallback ) {
123
- return call_user_func_array ($ fallback , [$ key , & $ dependencies ]);
122
+ $ result [$ key ] = $ this ->save ($ key , function (&$ dependencies ) use ($ key , $ fallback ) {
123
+ return call_user_func_array ($ fallback , [$ key , &$ dependencies ]);
124
124
});
125
125
}
126
126
}
@@ -135,8 +135,8 @@ public function bulkLoad(array $keys, $fallback = NULL)
135
135
if (isset ($ cacheData [$ storageKey ])) {
136
136
$ result [$ key ] = $ cacheData [$ storageKey ];
137
137
} elseif ($ fallback ) {
138
- $ result [$ key ] = $ this ->save ($ key , function (& $ dependencies ) use ($ key , $ fallback ) {
139
- return call_user_func_array ($ fallback , [$ key , & $ dependencies ]);
138
+ $ result [$ key ] = $ this ->save ($ key , function (&$ dependencies ) use ($ key , $ fallback ) {
139
+ return call_user_func_array ($ fallback , [$ key , &$ dependencies ]);
140
140
});
141
141
} else {
142
142
$ result [$ key ] = NULL ;
@@ -173,7 +173,7 @@ public function save($key, $data, array $dependencies = NULL)
173
173
}
174
174
$ this ->storage ->lock ($ key );
175
175
try {
176
- $ data = call_user_func_array ($ data , [& $ dependencies ]);
176
+ $ data = call_user_func_array ($ data , [&$ dependencies ]);
177
177
} catch (\Throwable $ e ) {
178
178
$ this ->storage ->remove ($ key );
179
179
throw $ e ;
0 commit comments