@@ -30,15 +30,15 @@ final class BlackfireOnMessageAdapterTest extends TestCase
3030
3131 public function testInvokeWithoutHeaderWithoutConfigAndWithoutLogger (): void
3232 {
33- /** @var WorkermanTcpConnection| MockObject $workermanTcpConnection */
33+ /** @var MockObject|WorkermanTcpConnection $workermanTcpConnection */
3434 $ workermanTcpConnection = $ this ->getMockByCalls (WorkermanTcpConnection::class);
3535
36- /** @var WorkermanRequest| MockObject $workermanRequest */
36+ /** @var MockObject|WorkermanRequest $workermanRequest */
3737 $ workermanRequest = $ this ->getMockByCalls (WorkermanRequest::class, [
3838 Call::create ('header ' )->with ('x-blackfire-query ' , null )->willReturn (null ),
3939 ]);
4040
41- /** @var OnMessageInterface| MockObject $onMessage */
41+ /** @var MockObject|OnMessageInterface $onMessage */
4242 $ onMessage = $ this ->getMockByCalls (OnMessageInterface::class, [
4343 Call::create ('__invoke ' )->with ($ workermanTcpConnection , $ workermanRequest ),
4444 ]);
@@ -52,20 +52,20 @@ public function testInvokeWithoutHeaderWithoutConfigAndWithoutLogger(): void
5252
5353 public function testInvokeWithoutConfigAndWithoutLogger (): void
5454 {
55- /** @var WorkermanTcpConnection| MockObject $workermanTcpConnection */
55+ /** @var MockObject|WorkermanTcpConnection $workermanTcpConnection */
5656 $ workermanTcpConnection = $ this ->getMockByCalls (WorkermanTcpConnection::class);
5757
58- /** @var WorkermanRequest| MockObject $workermanRequest */
58+ /** @var MockObject|WorkermanRequest $workermanRequest */
5959 $ workermanRequest = $ this ->getMockByCalls (WorkermanRequest::class, [
6060 Call::create ('header ' )->with ('x-blackfire-query ' , null )->willReturn ('workerman ' ),
6161 ]);
6262
63- /** @var OnMessageInterface| MockObject $onMessage */
63+ /** @var MockObject|OnMessageInterface $onMessage */
6464 $ onMessage = $ this ->getMockByCalls (OnMessageInterface::class, [
6565 Call::create ('__invoke ' )->with ($ workermanTcpConnection , $ workermanRequest ),
6666 ]);
6767
68- /** @var Probe| MockObject $probe */
68+ /** @var MockObject|Probe $probe */
6969 $ probe = $ this ->getMockByCalls (Probe::class);
7070
7171 /** @var Client|MockObject $client */
@@ -80,23 +80,23 @@ public function testInvokeWithoutConfigAndWithoutLogger(): void
8080
8181 public function testInvokeWithConfigAndWithLogger (): void
8282 {
83- /** @var WorkermanTcpConnection| MockObject $workermanTcpConnection */
83+ /** @var MockObject|WorkermanTcpConnection $workermanTcpConnection */
8484 $ workermanTcpConnection = $ this ->getMockByCalls (WorkermanTcpConnection::class);
8585
86- /** @var WorkermanRequest| MockObject $workermanRequest */
86+ /** @var MockObject|WorkermanRequest $workermanRequest */
8787 $ workermanRequest = $ this ->getMockByCalls (WorkermanRequest::class, [
8888 Call::create ('header ' )->with ('x-blackfire-query ' , null )->willReturn ('workerman ' ),
8989 ]);
9090
91- /** @var OnMessageInterface| MockObject $onMessage */
91+ /** @var MockObject|OnMessageInterface $onMessage */
9292 $ onMessage = $ this ->getMockByCalls (OnMessageInterface::class, [
9393 Call::create ('__invoke ' )->with ($ workermanTcpConnection , $ workermanRequest ),
9494 ]);
9595
9696 /** @var Configuration|MockObject $config */
9797 $ config = $ this ->getMockByCalls (Configuration::class);
9898
99- /** @var Probe| MockObject $probe */
99+ /** @var MockObject|Probe $probe */
100100 $ probe = $ this ->getMockByCalls (Probe::class);
101101
102102 /** @var Client|MockObject $client */
@@ -114,15 +114,15 @@ public function testInvokeWithConfigAndWithLogger(): void
114114
115115 public function testInvokeWithExceptionOnCreateProbe (): void
116116 {
117- /** @var WorkermanTcpConnection| MockObject $workermanTcpConnection */
117+ /** @var MockObject|WorkermanTcpConnection $workermanTcpConnection */
118118 $ workermanTcpConnection = $ this ->getMockByCalls (WorkermanTcpConnection::class);
119119
120- /** @var WorkermanRequest| MockObject $workermanRequest */
120+ /** @var MockObject|WorkermanRequest $workermanRequest */
121121 $ workermanRequest = $ this ->getMockByCalls (WorkermanRequest::class, [
122122 Call::create ('header ' )->with ('x-blackfire-query ' , null )->willReturn ('workerman ' ),
123123 ]);
124124
125- /** @var OnMessageInterface| MockObject $onMessage */
125+ /** @var MockObject|OnMessageInterface $onMessage */
126126 $ onMessage = $ this ->getMockByCalls (OnMessageInterface::class, [
127127 Call::create ('__invoke ' )->with ($ workermanTcpConnection , $ workermanRequest ),
128128 ]);
@@ -148,23 +148,23 @@ public function testInvokeWithExceptionOnCreateProbe(): void
148148
149149 public function testInvokeWithExceptionOnProbeEnd (): void
150150 {
151- /** @var WorkermanTcpConnection| MockObject $workermanTcpConnection */
151+ /** @var MockObject|WorkermanTcpConnection $workermanTcpConnection */
152152 $ workermanTcpConnection = $ this ->getMockByCalls (WorkermanTcpConnection::class);
153153
154- /** @var WorkermanRequest| MockObject $workermanRequest */
154+ /** @var MockObject|WorkermanRequest $workermanRequest */
155155 $ workermanRequest = $ this ->getMockByCalls (WorkermanRequest::class, [
156156 Call::create ('header ' )->with ('x-blackfire-query ' , null )->willReturn ('workerman ' ),
157157 ]);
158158
159- /** @var OnMessageInterface| MockObject $onMessage */
159+ /** @var MockObject|OnMessageInterface $onMessage */
160160 $ onMessage = $ this ->getMockByCalls (OnMessageInterface::class, [
161161 Call::create ('__invoke ' )->with ($ workermanTcpConnection , $ workermanRequest ),
162162 ]);
163163
164164 /** @var Configuration|MockObject $config */
165165 $ config = $ this ->getMockByCalls (Configuration::class);
166166
167- /** @var Probe| MockObject $probe */
167+ /** @var MockObject|Probe $probe */
168168 $ probe = $ this ->getMockByCalls (Probe::class);
169169
170170 $ exception = new LogicException ('Something went wrong ' );
0 commit comments