Skip to content

Commit

Permalink
chore: compatibility with SF 7
Browse files Browse the repository at this point in the history
  • Loading branch information
vincent4vx committed Sep 26, 2024
1 parent e8b66bb commit 67cfabb
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 9 deletions.
12 changes: 6 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
"ext-pcntl": "*",
"b2pweb/bdf-dsn": "~1.0",
"b2pweb/bdf-instantiator": "~1.0",
"symfony/console": "~5.4|~6.0",
"symfony/messenger": "~5.4|~6.0"
"symfony/console": "~5.4|~6.0|~7.0",
"symfony/messenger": "~5.4|~6.0|~7.0"
},
"require-dev": {
"b2pweb/bdf-serializer": "~1.0",
Expand All @@ -41,9 +41,9 @@
"php-amqplib/php-amqplib": "~3.0",
"phpbench/phpbench": "~0.0|~1.0",
"phpunit/phpunit": "~9.6",
"symfony/error-handler": "~5.4|~6.0",
"symfony/phpunit-bridge": "~5.4|~6.0",
"symfony/var-dumper": "~5.4|~6.0",
"symfony/error-handler": "~5.4|~6.0|~7.0",
"symfony/phpunit-bridge": "~5.4|~6.0|~7.0",
"symfony/var-dumper": "~5.4|~6.0|~7.0",
"vimeo/psalm": "~5.22",
"predis/predis": "~1.1.0",
"friendsofphp/php-cs-fixer": "^3.0"
Expand All @@ -57,7 +57,7 @@
"kwn/php-rdkafka-stubs": "Required to use the Kafka queue driver (~2.0)",
"ext/rdkafka": "Required to use the Kafka queue driver (~4.0|~5.0|~6.0)",
"enqueue/enqueue": "Required to use the Enqueue driver (~0.9)",
"symfony/var-dumper": "VarDumper could be used for displaying failed message (~5.4|~6.0)"
"symfony/var-dumper": "VarDumper could be used for displaying failed message (~5.4|~6.0|~7.0)"
},
"scripts": {
"tests": "phpunit",
Expand Down
2 changes: 1 addition & 1 deletion src/Console/Command/Failer/AbstractFailerCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ abstract class AbstractFailerCommand extends Command
*/
public function __construct(FailedJobStorageInterface $storage)
{
parent::__construct(static::$defaultName);
parent::__construct(static::$defaultName ?? null);

$this->repository = FailedJobRepositoryAdapter::adapt($storage);
}
Expand Down
1 change: 0 additions & 1 deletion src/Consumer/Receiver/Builder/ReceiverFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
use Psr\Container\ContainerInterface;
use Psr\Log\LoggerInterface;
use Psr\Log\NullLogger;

use ReflectionFunction;
use ReflectionMethod;
use ReflectionNamedType;
Expand Down
1 change: 0 additions & 1 deletion src/Destination/DestinationFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
use Bdf\Dsn\DsnRequest;
use Bdf\Queue\Connection\ConnectionDriverInterface;
use Bdf\Queue\Connection\Factory\ConnectionDriverFactoryInterface;

use Bdf\Queue\Destination\Queue\MultiQueueDestination;
use Bdf\Queue\Destination\Queue\QueueDestination;
use Bdf\Queue\Destination\Topic\TopicDestinationFactory;
Expand Down
1 change: 1 addition & 0 deletions src/Message/ErrorMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ class ErrorMessage extends QueuedMessage
* ErrorMessage constructor.
*
* @param \Throwable $exception
* @psalm-suppress ParamNameMismatch
*/
public function __construct(\Throwable $exception)
{
Expand Down

0 comments on commit 67cfabb

Please sign in to comment.