reactphp/promise — pull request #9 by jsor (2013-01-21 09:35:57+00:00)
Title: Ensure reject() always rejects with a reason value even if rejection value is a promise

Consider:

```php
$d = new Deferred();
$d->reject(When::reject('foo'));
```

Before:
```php
$d->promise()->then(null, function ($reason) {
// $reason is instanceof RejectedPromise
});
```

After:
```php
$d->promise()->then(null, function ($reason) {
// $reason === 'foo'
});
```