From 66a6dd461ab865efc459359e8fef9a3663d79e11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9rgio=20Rafael=20Siqueira?= Date: Sun, 3 Jul 2016 17:34:08 -0300 Subject: [PATCH] Add takewhile and dropwhile #2 Remove unnecessary partial --- src/dropwhile.php | 2 +- src/flatten.php | 2 ++ src/takewhile.php | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/dropwhile.php b/src/dropwhile.php index 38ad417..b1ee8e7 100644 --- a/src/dropwhile.php +++ b/src/dropwhile.php @@ -7,7 +7,7 @@ /** * @author Sérgio Rafael Siqueira * - * @return mixed + * @return array */ function dropwhile(/* ...$args */) { diff --git a/src/flatten.php b/src/flatten.php index a0957de..c2b1cd8 100644 --- a/src/flatten.php +++ b/src/flatten.php @@ -7,6 +7,8 @@ /** * @author Sérgio Rafael Siqueira * + * @param array $xs + * * @return mixed */ function flatten(array $xs) diff --git a/src/takewhile.php b/src/takewhile.php index 06d79d2..83e2413 100644 --- a/src/takewhile.php +++ b/src/takewhile.php @@ -6,7 +6,7 @@ * @author Marcelo Camargo * @author Sérgio Rafael Siqueira * - * @return mixed + * @return array */ function takewhile(/* ...$args */) {