Skip to content

Commit 08ebc42

Browse files
minor #42220 fix intersection types in tests (Tobion)
This PR was merged into the 4.4 branch. Discussion ---------- fix intersection types in tests | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | no | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Tickets | | License | MIT | Doc PR | Commits ------- e5d5e9967f fix intersection types in tests
2 parents 36990f3 + 1a7faae commit 08ebc42

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Tests/Command/SetupTransportsCommandTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class SetupTransportsCommandTest extends TestCase
2424
public function testReceiverNames()
2525
{
2626
// mock a service locator
27-
/** @var MockObject|ServiceLocator $serviceLocator */
27+
/** @var MockObject&ServiceLocator $serviceLocator */
2828
$serviceLocator = $this->createMock(ServiceLocator::class);
2929
// get method must be call twice and will return consecutively a setup-able transport and a non setup-able transport
3030
$serviceLocator->expects($this->exactly(2))
@@ -49,7 +49,7 @@ public function testReceiverNames()
4949
public function testReceiverNameArgument()
5050
{
5151
// mock a service locator
52-
/** @var MockObject|ServiceLocator $serviceLocator */
52+
/** @var MockObject&ServiceLocator $serviceLocator */
5353
$serviceLocator = $this->createMock(ServiceLocator::class);
5454
// get method must be call twice and will return consecutively a setup-able transport and a non setup-able transport
5555
$serviceLocator->expects($this->exactly(1))
@@ -74,7 +74,7 @@ public function testReceiverNameArgumentNotFound()
7474
$this->expectException(\RuntimeException::class);
7575
$this->expectExceptionMessage('The "not_found" transport does not exist.');
7676
// mock a service locator
77-
/** @var MockObject|ServiceLocator $serviceLocator */
77+
/** @var MockObject&ServiceLocator $serviceLocator */
7878
$serviceLocator = $this->createMock(ServiceLocator::class);
7979
// get method must be call twice and will return consecutively a setup-able transport and a non setup-able transport
8080
$serviceLocator->expects($this->exactly(0))

0 commit comments

Comments
 (0)