Improve type hints
authorwidmogrod <widmogrod@gmail.com>
Fri, 29 Dec 2017 22:32:55 +0000 (23:32 +0100)
committerwidmogrod <widmogrod@gmail.com>
Fri, 29 Dec 2017 22:32:55 +0000 (23:32 +0100)
src/Functional/listt.php

index f569261..eb4e549 100644 (file)
@@ -113,9 +113,9 @@ const concat = 'Widmogrod\Functional\concat';
  *
  * @return Listt
  */
-function concat(Foldable $xs)
+function concat(Foldable $xs): Listt
 {
-    return foldr(function ($x, Listt $y) {
+    return foldr(function (Foldable $x, Listt $y) {
         return foldr(prepend, $y, $x);
     }, fromNil(), $xs);
 }