1
0
mirror of https://github.com/danog/amp.git synced 2024-11-30 04:29:08 +01:00

Lazy promise bugfix

This commit is contained in:
Aaron Piotrowski 2016-11-14 14:10:44 -06:00
parent 9927ad5b4f
commit f95412770b

View File

@ -35,7 +35,7 @@ class LazyPromise implements Promise {
try {
$this->promise = $provider();
if ($this->promise instanceof Promise) {
if (!$this->promise instanceof Promise) {
$this->promise = new Success($this->promise);
}
} catch (\Throwable $exception) {