Skip to content

Commit

Permalink
ARCH-414 Clean up after the merge
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleg Namaka committed Nov 15, 2024
1 parent cbeed95 commit 051b477
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ private static function normalizeQueueArguments(array $arguments): array
}

if (!is_numeric($arguments[$key])) {
throw new InvalidArgumentException(sprintf('Integer expected for queue argument "%s", "%s" given.', $key, gettype($arguments[$key])));
throw new InvalidArgumentException(sprintf('Integer expected for queue argument "%s", "%s" given.', $key, get_debug_type($arguments[$key])));
}

$arguments[$key] = (int) $arguments[$key];
Expand Down
2 changes: 1 addition & 1 deletion src/Symfony/Component/Messenger/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ CHANGELOG
* Add support for handling messages in batches with `BatchHandlerInterface` and corresponding trait
* Add `StopWorkerExceptionInterface` and its implementation `StopWorkerException` to stop the worker.
* Add support for resetting container services after each messenger message.
* Added `WorkerMetadata` class wUpdathich allows you to access the configuration details of a worker, like `queueNames` and `transportNames` it consumes from.
* Added `WorkerMetadata` class which allows you to access the configuration details of a worker, like `queueNames` and `transportNames` it consumes from.
* New method `getMetadata()` was added to `Worker` class which returns the `WorkerMetadata` object.
* Deprecate not setting the `reset_on_message` config option, its default value will change to `true` in 6.0
* Add log when worker should stop.
Expand Down
2 changes: 1 addition & 1 deletion src/Symfony/Component/Messenger/Tests/WorkerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,7 @@ public function testGcCollectCyclesIsCalledOnMessageHandle()
{
$apiMessage = new DummyMessage('API');

$receiver = new \Symfony\Component\Messenger\Tests\Fixtures\DummyReceiver([[new Envelope($apiMessage)]]);
$receiver = new DummyReceiver([[new Envelope($apiMessage)]]);

$bus = $this->createMock(MessageBusInterface::class);

Expand Down

0 comments on commit 051b477

Please sign in to comment.