@@ -110,6 +110,7 @@ static function () use (&$onRejectedCalled): void {
110
110
self ::assertNotSame ($ promise , $ nextPromise );
111
111
self ::assertSame (SyncPromise::PENDING , $ nextPromise ->state );
112
112
} else {
113
+ /** @phpstan-ignore argument.unresolvableType (false positive?) */
113
114
self ::assertSame (SyncPromise::FULFILLED , $ nextPromise ->state );
114
115
}
115
116
@@ -282,6 +283,7 @@ static function () use (&$onFulfilledCalled): void {
282
283
self ::assertNotSame ($ promise , $ nextPromise );
283
284
self ::assertSame (SyncPromise::PENDING , $ nextPromise ->state );
284
285
} else {
286
+ /** @phpstan-ignore argument.unresolvableType (false positive?) */
285
287
self ::assertSame (SyncPromise::REJECTED , $ nextPromise ->state );
286
288
}
287
289
@@ -389,7 +391,7 @@ public function testPendingPromiseThen(): void
389
391
$ nextPromise3 = $ promise ->then ($ onFulfilled , $ onRejected );
390
392
$ nextPromise4 = $ promise ->then ($ onFulfilled , $ onRejected );
391
393
392
- self ::assertCount ( 0 , SyncPromise::getQueue ());
394
+ self ::assertEmpty ( SyncPromise::getQueue ());
393
395
self ::assertSame (0 , $ onFulfilledCount );
394
396
self ::assertSame (0 , $ onRejectedCount );
395
397
$ promise ->resolve (1 );
@@ -403,7 +405,7 @@ public function testPendingPromiseThen(): void
403
405
self ::assertSame (SyncPromise::PENDING , $ nextPromise4 ->state );
404
406
405
407
SyncPromise::runQueue ();
406
- self ::assertCount ( 0 , SyncPromise::getQueue ());
408
+ self ::assertEmpty ( SyncPromise::getQueue ());
407
409
self ::assertSame (3 , $ onFulfilledCount ); // @phpstan-ignore-line side-effects
408
410
self ::assertSame (0 , $ onRejectedCount ); // @phpstan-ignore-line side-effects
409
411
self ::assertValidPromise ($ nextPromise , 1 , null , SyncPromise::FULFILLED );
0 commit comments