@@ -24,7 +24,7 @@ class SetupTransportsCommandTest extends TestCase
24
24
public function testReceiverNames ()
25
25
{
26
26
// mock a service locator
27
- /** @var MockObject| ServiceLocator $serviceLocator */
27
+ /** @var MockObject& ServiceLocator $serviceLocator */
28
28
$ serviceLocator = $ this ->createMock (ServiceLocator::class);
29
29
// get method must be call twice and will return consecutively a setup-able transport and a non setup-able transport
30
30
$ serviceLocator ->expects ($ this ->exactly (2 ))
@@ -49,7 +49,7 @@ public function testReceiverNames()
49
49
public function testReceiverNameArgument ()
50
50
{
51
51
// mock a service locator
52
- /** @var MockObject| ServiceLocator $serviceLocator */
52
+ /** @var MockObject& ServiceLocator $serviceLocator */
53
53
$ serviceLocator = $ this ->createMock (ServiceLocator::class);
54
54
// get method must be call twice and will return consecutively a setup-able transport and a non setup-able transport
55
55
$ serviceLocator ->expects ($ this ->exactly (1 ))
@@ -74,7 +74,7 @@ public function testReceiverNameArgumentNotFound()
74
74
$ this ->expectException (\RuntimeException::class);
75
75
$ this ->expectExceptionMessage ('The "not_found" transport does not exist. ' );
76
76
// mock a service locator
77
- /** @var MockObject| ServiceLocator $serviceLocator */
77
+ /** @var MockObject& ServiceLocator $serviceLocator */
78
78
$ serviceLocator = $ this ->createMock (ServiceLocator::class);
79
79
// get method must be call twice and will return consecutively a setup-able transport and a non setup-able transport
80
80
$ serviceLocator ->expects ($ this ->exactly (0 ))
0 commit comments