Skip to content

Commit ade044b

Browse files
committed
Updated echoFinally to work with finally instead of compose
1 parent 4ad7a69 commit ade044b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/functions.php

+2-4
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,8 @@ function () use ($prefix) {
9696

9797
function echoFinally($prefix = ''): callable
9898
{
99-
return function (Observable $observable) use ($prefix): Observable {
100-
return $observable->finally(function () use ($prefix) {
101-
echo $prefix . 'Finally! ' . PHP_EOL;
102-
});
99+
return function () use ($prefix) {
100+
echo $prefix . 'Finally! ' . PHP_EOL;
103101
};
104102
}
105103

0 commit comments

Comments
 (0)