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 8d05ffd commit 43edd65Copy full SHA for 43edd65
src/functions.php
@@ -25,7 +25,7 @@ function resolve($promiseOrValue = null): PromiseInterface
25
return $promiseOrValue;
26
}
27
28
- if (\method_exists($promiseOrValue, 'then')) {
+ if (\is_object($promiseOrValue) && \method_exists($promiseOrValue, 'then')) {
29
$canceller = null;
30
31
if (\method_exists($promiseOrValue, 'cancel')) {
0 commit comments