Skip to content

Commit

Permalink
Updated echoFinally to work with finally instead of compose
Browse files Browse the repository at this point in the history
  • Loading branch information
davidwdan committed Sep 14, 2017
1 parent 4ad7a69 commit ade044b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,8 @@ function () use ($prefix) {

function echoFinally($prefix = ''): callable
{
return function (Observable $observable) use ($prefix): Observable {
return $observable->finally(function () use ($prefix) {
echo $prefix . 'Finally! ' . PHP_EOL;
});
return function () use ($prefix) {
echo $prefix . 'Finally! ' . PHP_EOL;
};
}

Expand Down

0 comments on commit ade044b

Please sign in to comment.