From 7df8b9579b498ef14a6629a0ac747cf4fc8c1cac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl?= Date: Thu, 3 Jul 2025 01:40:03 +0200 Subject: [PATCH] Fix copy-paste oversights in docblocks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michaƫl --- src/array_first_last.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/array_first_last.php b/src/array_first_last.php index 66e93b3..4bac884 100644 --- a/src/array_first_last.php +++ b/src/array_first_last.php @@ -14,10 +14,10 @@ function array_first(array $array): mixed { } /** - * Returns the first value of a given array. + * Returns the last value of a given array. * - * @param array $array The array to get the first value of. - * @return mixed First value of the array, or null if the array is + * @param array $array The array to get the last value of. + * @return mixed Last value of the array, or null if the array is * empty. Note that null itself can also be a valid array value. */ function array_last(array $array): mixed { @@ -37,10 +37,10 @@ function array_first(array $array) { } /** - * Returns the first value of a given array. + * Returns the last value of a given array. * - * @param array $array The array to get the first value of. - * @return mixed First value of the array, or null if the array is + * @param array $array The array to get the last value of. + * @return mixed Last value of the array, or null if the array is * empty. Note that null itself can also be a valid array value. */ function array_last(array $array) {