Skip to content

Commit

Permalink
Merge pull request #109 from phil-davis/apply-cs-fixer-changes
Browse files Browse the repository at this point in the history
Apply latest cs-fixer changes
  • Loading branch information
phil-davis committed Jun 28, 2023
2 parents fea6ea5 + 1ee3b49 commit dc866d0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
10 changes: 4 additions & 6 deletions lib/Promise.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public function otherwise(callable $onRejected): Promise
/**
* Marks this promise as fulfilled and sets its return value.
*
* @param mixed $value
* @param mixed $value the value to return for the fulfilled promise
*/
public function fulfill($value = null): void
{
Expand Down Expand Up @@ -168,8 +168,6 @@ public function reject(\Throwable $reason): void
* one. In PHP it might be useful to call this on the last promise in a
* chain.
*
* @return mixed
*
* @psalm-return TReturn
*/
public function wait()
Expand Down Expand Up @@ -207,11 +205,11 @@ public function wait()
* The result of the promise.
*
* If the promise was fulfilled, this will be the result value. If the
* promise was rejected, this property hold the rejection reason.
* promise was rejected, this property holds the rejection reason.
*
* @var mixed
* @var mixed the result to be returned when the promise is resolved
*/
protected $value = null;
protected $value;

/**
* This method is used to call either an onFulfilled or onRejected callback.
Expand Down
2 changes: 1 addition & 1 deletion lib/Promise/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ function ($reason) use ($fail, &$alreadyDone) {
* If the value is a promise, the returned promise will attach itself to that
* promise and eventually get the same state as the followed promise.
*
* @param mixed $value
* @param mixed $value the value to return when the promise is resolved
*
* @return Promise<mixed>
*/
Expand Down

0 comments on commit dc866d0

Please sign in to comment.