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.
2 parents f0430ac + 8feffb8 commit a287fc0Copy full SHA for a287fc0
1 file changed
src/CancellationQueue.php
@@ -19,7 +19,7 @@ public function __invoke()
19
20
public function enqueue($cancellable)
21
{
22
- if (!\method_exists($cancellable, 'then') || !\method_exists($cancellable, 'cancel')) {
+ if (!\is_object($cancellable) || !\method_exists($cancellable, 'then') || !\method_exists($cancellable, 'cancel')) {
23
return;
24
}
25
0 commit comments