@@ -89,8 +89,8 @@ public function load($key, $fallback = NULL)
8989 {
9090 $ data = $ this ->storage ->read ($ this ->generateKey ($ key ));
9191 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 ]);
9494 });
9595 }
9696 return $ data ;
@@ -119,8 +119,8 @@ public function bulkLoad(array $keys, $fallback = NULL)
119119 if ($ fallback !== NULL ) {
120120 foreach ($ result as $ key => $ value ) {
121121 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 ]);
124124 });
125125 }
126126 }
@@ -135,8 +135,8 @@ public function bulkLoad(array $keys, $fallback = NULL)
135135 if (isset ($ cacheData [$ storageKey ])) {
136136 $ result [$ key ] = $ cacheData [$ storageKey ];
137137 } 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 ]);
140140 });
141141 } else {
142142 $ result [$ key ] = NULL ;
@@ -173,7 +173,7 @@ public function save($key, $data, array $dependencies = NULL)
173173 }
174174 $ this ->storage ->lock ($ key );
175175 try {
176- $ data = call_user_func_array ($ data , [& $ dependencies ]);
176+ $ data = call_user_func_array ($ data , [&$ dependencies ]);
177177 } catch (\Throwable $ e ) {
178178 $ this ->storage ->remove ($ key );
179179 throw $ e ;
0 commit comments