Skip to content

Commit d91ecf8

Browse files
committed
In preparation for updating QA tooling raise PHP to 8.3
1 parent 4cd08c2 commit d91ecf8

File tree

3 files changed

+11
-8
lines changed

3 files changed

+11
-8
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
}
1010
],
1111
"require": {
12-
"php": "^8.2",
12+
"php": "^8.3",
1313
"clue/redis-react": "^2.8",
1414
"evenement/evenement": "^3.0.2",
1515
"react/cache": "^1.2",
@@ -36,7 +36,7 @@
3636
"infection/extension-installer": true
3737
},
3838
"platform": {
39-
"php": "8.2.13"
39+
"php": "8.3.13"
4040
},
4141
"sort-packages": true
4242
},

composer.lock

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Redis.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,11 @@
2020

2121
final class Redis implements CacheInterface
2222
{
23+
private const string DEFAULT_PREFIX = 'react:cache:';
24+
private const int DEFAULT_TTL = 0;
25+
2326
/** @phpstan-ignore-next-line */
24-
public function __construct(private Client $client, private string $prefix = 'react:cache:', private int $ttl = 0)
27+
public function __construct(private Client $client, private string $prefix = self::DEFAULT_PREFIX, private int $ttl = self::DEFAULT_TTL)
2528
{
2629
}
2730

0 commit comments

Comments
 (0)