File tree 1 file changed +0
-30
lines changed
1 file changed +0
-30
lines changed Original file line number Diff line number Diff line change 4
4
5
5
use Laminas \Cache \Exception ;
6
6
use Laminas \Cache \Storage \StorageInterface ;
7
- use Laminas \Stdlib \ErrorHandler ;
8
7
use Stringable ;
9
8
use Throwable ;
10
9
11
10
use function array_shift ;
12
11
use function array_unshift ;
13
- use function array_values ;
14
12
use function assert ;
15
13
use function func_get_args ;
16
14
use function in_array ;
17
- use function md5 ;
18
15
use function method_exists ;
19
16
use function property_exists ;
20
- use function serialize ;
21
17
use function sprintf ;
22
18
use function strtolower ;
23
19
@@ -288,30 +284,4 @@ public function __invoke(): mixed
288
284
{
289
285
return $ this ->call ('__invoke ' , func_get_args ());
290
286
}
291
-
292
- private function generateArgumentsKey (array $ args ): string
293
- {
294
- if ($ args === []) {
295
- return '' ;
296
- }
297
-
298
- ErrorHandler::start ();
299
- try {
300
- $ serializedArgs = serialize (array_values ($ args ));
301
- } catch (\Exception $ e ) {
302
- ErrorHandler::stop ();
303
- throw new Exception \RuntimeException ("Can't serialize arguments: see previous exception " , 0 , $ e );
304
- }
305
- $ error = ErrorHandler::stop ();
306
-
307
- if (! $ serializedArgs ) {
308
- throw new Exception \RuntimeException (
309
- sprintf ('Cannot serialize arguments%s ' , $ error ? ': ' . $ error ->getMessage () : '' ),
310
- 0 ,
311
- $ error
312
- );
313
- }
314
-
315
- return md5 ($ serializedArgs );
316
- }
317
287
}
You can’t perform that action at this time.
0 commit comments