Skip to content

Commit 0950c61

Browse files
authored
Add files via upload
1 parent adb7a19 commit 0950c61

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/vennv/vapm/Promise.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,10 +306,20 @@ private function checkStatus(array $callbacks, mixed $return) : void
306306
if (!is_null($queue1))
307307
{
308308
$queue1->then($callable);
309+
310+
if (is_callable($this->callbackReject))
311+
{
312+
$queue1->catch($this->callbackReject);
313+
}
309314
}
310315
elseif (!is_null($queue2))
311316
{
312317
$queue2->then($callable);
318+
319+
if (is_callable($this->callbackReject))
320+
{
321+
$queue2->catch($this->callbackReject);
322+
}
313323
}
314324

315325
unset($callbacks[$case]);

0 commit comments

Comments
 (0)