File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 16
16
},
17
17
"require" : {
18
18
"php" : " ^7.2|^8.0" ,
19
- "ext-json" : " *" ,
20
- "symfony/polyfill-apcu" : " ^1.6"
19
+ "ext-json" : " *"
21
20
},
22
21
"require-dev" : {
23
22
"guzzlehttp/guzzle" : " ^6.3|^7.0" ,
26
25
"phpstan/phpstan-phpunit" : " ^0.12.16" ,
27
26
"phpstan/phpstan-strict-rules" : " ^0.12.5" ,
28
27
"phpunit/phpunit" : " ^8.4|^9.4" ,
29
- "squizlabs/php_codesniffer" : " ^3.5"
28
+ "squizlabs/php_codesniffer" : " ^3.5" ,
29
+ "symfony/polyfill-apcu" : " ^1.6"
30
30
},
31
31
"suggest" : {
32
32
"ext-redis" : " Required if using Redis." ,
33
33
"ext-apc" : " Required if using APCu." ,
34
- "promphp/prometheus_push_gateway_php" : " An easy client for using Prometheus PushGateway."
34
+ "promphp/prometheus_push_gateway_php" : " An easy client for using Prometheus PushGateway." ,
35
+ "symfony/polyfill-apcu" : " Required if you use APCu on PHP8.0+"
35
36
},
36
37
"autoload" : {
37
38
"psr-4" : {
Original file line number Diff line number Diff line change @@ -285,15 +285,15 @@ public function updateSummary(array $data): void
285
285
if (false === $ json ) {
286
286
throw new RuntimeException (json_last_error_msg ());
287
287
}
288
- $ this ->redis ->setnx ($ metaKey , $ json );
288
+ $ this ->redis ->setNx ($ metaKey , $ json );
289
289
290
290
// store value key
291
291
$ valueKey = $ summaryKey . ': ' . $ this ->valueKey ($ data );
292
292
$ json = json_encode ($ this ->encodeLabelValues ($ data ['labelValues ' ]));
293
293
if (false === $ json ) {
294
294
throw new RuntimeException (json_last_error_msg ());
295
295
}
296
- $ this ->redis ->setnx ($ valueKey , $ json );
296
+ $ this ->redis ->setNx ($ valueKey , $ json );
297
297
298
298
// trick to handle uniqid collision
299
299
$ done = false ;
You can’t perform that action at this time.
0 commit comments