diff --git a/lib/Rx/Observable/BaseObservable.php b/lib/Rx/Observable/BaseObservable.php
index <HASH>..<HASH> 100644
--- a/lib/Rx/Observable/BaseObservable.php
+++ b/lib/Rx/Observable/BaseObservable.php
@@ -468,7 +468,7 @@ abstract class BaseObservable implements ObservableInterface
           function ($error) use ($d) {
               $d->reject($error);
           },
-          function () use ($d, $value) {
+          function () use ($d, &$value) {
               $d->resolve($value);
           }
Make sure toPromise value is passed by reference