File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 5
5
use Amp \DeferredFuture ;
6
6
use Amp \Future ;
7
7
use PHPUnit \Framework \AssertionFailedError ;
8
- use PHPUnit \Framework \MockObject \MockObject ;
9
8
use PHPUnit \Framework \TestCase as PHPUnitTestCase ;
10
9
use Revolt \EventLoop ;
11
10
use Revolt \EventLoop \Driver \TracingDriver ;
@@ -193,9 +192,9 @@ final protected function setTimeout(float $seconds): void
193
192
* @param int $invocationCount Number of times the callback must be invoked or the test will fail.
194
193
* @param callable|null $returnCallback Callable providing a return value for the callback.
195
194
*
196
- * @return \Closure&MockObject Mock object having only an __invoke method.
195
+ * @return \Closure
197
196
*/
198
- final protected function createCallback (int $ invocationCount , callable $ returnCallback = null ): \Closure
197
+ final protected function createCallback (int $ invocationCount , ? callable $ returnCallback = null ): \Closure
199
198
{
200
199
$ mock = $ this ->createMock (CallbackStub::class);
201
200
$ invocationMocker = $ mock ->expects (self ::exactly ($ invocationCount ))
You can’t perform that action at this time.
0 commit comments