Skip to content

Commit

Permalink
minor #29210 [Messenger] Fix typos (ogizanagi)
Browse files Browse the repository at this point in the history
This PR was merged into the 4.2-dev branch.

Discussion
----------

[Messenger] Fix typos

| Q             | A
| ------------- | ---
| Branch?       | 4.2 <!-- see below -->
| Bug fix?      | no
| New feature?  | no <!-- don't forget to update src/**/CHANGELOG.md files -->
| BC breaks?    | no     <!-- see https://symfony.com/bc -->
| Deprecations? | no <!-- don't forget to update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tests pass?   | yes    <!-- please add some, will be required by reviewers -->
| Fixed tickets | N/A   <!-- #-prefixed issue number(s), if any -->
| License       | MIT
| Doc PR        | N/A

Just small typos extracted from #29166 in case it doesn't make it to 4.2.

Commits
-------

7e763f9 [Messenger] Fix typos
  • Loading branch information
nicolas-grekas committed Nov 13, 2018
2 parents da77fc2 + 7e763f9 commit 8ce6f5e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Expand Up @@ -1583,7 +1583,7 @@ private function registerMessengerConfiguration(array $config, ContainerBuilder
}, $messageConfiguration['senders']);

$sendersId = 'messenger.senders.'.$message;
$sendersDefinition = $container->register($sendersId, RewindableGenerator::class)
$container->register($sendersId, RewindableGenerator::class)
->setFactory('current')
->addArgument(array(new IteratorArgument($senders)));
$messageToSendersMapping[$message] = new Reference($sendersId);
Expand Down
2 changes: 1 addition & 1 deletion src/Symfony/Component/Messenger/Stamp/ReceivedStamp.php
Expand Up @@ -14,7 +14,7 @@
use Symfony\Component\Messenger\Middleware\SendMessageMiddleware;

/**
* Marker config for a received message.
* Marker stamp for a received message.
*
* This is mainly used by the `SendMessageMiddleware` middleware to identify
* a message should not be sent if it was just received.
Expand Down
2 changes: 1 addition & 1 deletion src/Symfony/Component/Messenger/Tests/EnvelopeTest.php
Expand Up @@ -39,7 +39,7 @@ public function testWithReturnsNewInstance()
$this->assertNotSame($envelope, $envelope->with(new ReceivedStamp()));
}

public function testGetLast()
public function testLast()
{
$receivedStamp = new ReceivedStamp();
$envelope = new Envelope($dummy = new DummyMessage('dummy'), $receivedStamp);
Expand Down

0 comments on commit 8ce6f5e

Please sign in to comment.