diff --git a/lib/Internal/LazyPromise.php b/lib/Internal/LazyPromise.php index 54c72bf..f1ee791 100644 --- a/lib/Internal/LazyPromise.php +++ b/lib/Internal/LazyPromise.php @@ -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) {