Skip to content

Commit 321a288

Browse files
authored
Merge pull request #23 from Prokyonn/enhancement/symfony-7
Add Symfony 7 support
2 parents 74f3ab4 + 7b7c535 commit 321a288

File tree

4 files changed

+16
-13
lines changed

4 files changed

+16
-13
lines changed

Command/TrimRedisStreamCommand.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222

2323
class TrimRedisStreamCommand extends Command
2424
{
25+
/**
26+
* @var string
27+
*/
2528
protected static $defaultName = 'redis-transport:trim';
2629

2730
/**

DependencyInjection/Configuration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
*/
2424
class Configuration implements ConfigurationInterface
2525
{
26-
public function getConfigTreeBuilder()
26+
public function getConfigTreeBuilder(): TreeBuilder
2727
{
2828
$treeBuilder = new TreeBuilder('handcraftedinthealps_redis_transport');
2929

Tests/Unit/Command/TrimRedisStreamCommandTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ public function testExecute(): void
2727
{
2828
$redis = $this->prophesize(\Redis::class);
2929

30-
$input = new ArgvInput([TrimRedisStreamCommand::getDefaultName(), 'redis-dsn://[email protected]:6739/stream/group/consumer']);
30+
$input = new ArgvInput(['redis-transport:trim', 'redis-dsn://[email protected]:6739/stream/group/consumer']);
3131
$output = new NullOutput();
3232

33-
$redis->connect('127.0.0.1', '6739')->shouldBeCalled();
33+
$redis->connect('127.0.0.1', 6739)->shouldBeCalled();
3434
$redis->getLastError()->willReturn(null)->shouldBeCalled();
3535
$redis->auth('password')->shouldBeCalled();
3636
$redis->xtrim('stream', '1000', true)

composer.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,23 @@
66
"require": {
77
"php": "^7.3 || ^8.0",
88
"ext-redis": "^4.2 || ^5.0 || ^6.0",
9-
"symfony/messenger": "^4.3 || ^5.4 || ^6.0",
10-
"symfony/config": "^3.4 || ^4.0 || ^5.4 || ^6.0",
11-
"symfony/dependency-injection": "^3.4 || ^4.0 || ^5.4 || ^6.0",
12-
"symfony/serializer": "^3.4 || ^4.0 || ^5.4 || ^6.0",
13-
"symfony/property-access": "^3.4 || ^4.0 || ^5.4 || ^6.0"
9+
"symfony/messenger": "^4.3 || ^5.4 || ^6.0 || ^7.0",
10+
"symfony/config": "^3.4 || ^4.0 || ^5.4 || ^6.0 || ^7.0",
11+
"symfony/dependency-injection": "^3.4 || ^4.0 || ^5.4 || ^6.0 || ^7.0",
12+
"symfony/serializer": "^3.4 || ^4.0 || ^5.4 || ^6.0 || ^7.0",
13+
"symfony/property-access": "^3.4 || ^4.0 || ^5.4 || ^6.0 || ^7.0"
1414
},
1515
"require-dev": {
1616
"phpunit/phpunit": "^9.5",
1717
"friendsofphp/php-cs-fixer": "^2.0 || ^3.9",
1818
"phpstan/phpstan": "^1.8",
1919
"phpstan/phpstan-symfony": "^1.2",
20-
"symfony/console": "^3.4 || ^4.0 || ^5.4 || ^6.0",
21-
"symfony/framework-bundle": "^3.4 || ^4.0 || ^5.4 || ^6.0",
22-
"symfony/yaml": "^3.4 || ^4.0 || ^5.4 || ^6.0",
23-
"symfony/error-handler": "^3.4 || ^4.0 || ^5.4 || ^6.0",
20+
"symfony/console": "^3.4 || ^4.0 || ^5.4 || ^6.0 || ^7.0",
21+
"symfony/framework-bundle": "^3.4 || ^4.0 || ^5.4 || ^6.0 || ^7.0",
22+
"symfony/yaml": "^3.4 || ^4.0 || ^5.4 || ^6.0 || ^7.0",
23+
"symfony/error-handler": "^3.4 || ^4.0 || ^5.4 || ^6.0 || ^7.0",
2424
"phpspec/prophecy-phpunit": "^2.0",
25-
"symfony/redis-messenger": "^5.4 || ^6.0"
25+
"symfony/redis-messenger": "^5.4 || ^6.0 || ^7.0"
2626
},
2727
"suggest": {
2828
"symfony/redis-messenger": "Required if version of symfony/messenger is >= 5.1"

0 commit comments

Comments
 (0)