We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43edd65 commit af072f6Copy full SHA for af072f6
src/Internal/CancellationQueue.php
@@ -22,7 +22,7 @@ public function __invoke(): void
22
23
public function enqueue($cancellable): void
24
{
25
- if (!\method_exists($cancellable, 'then') || !\method_exists($cancellable, 'cancel')) {
+ if (!\is_object($cancellable) || !\method_exists($cancellable, 'then') || !\method_exists($cancellable, 'cancel')) {
26
return;
27
}
28
0 commit comments