Skip to content

Commit cfa88ce

Browse files
miclfAyesh
authored andcommitted
Fix copy-paste oversights in docblocks
Signed-off-by: Michaël <miclf@users.noreply.github.com>
1 parent 4a49da6 commit cfa88ce

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/array_first_last.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ function array_first(array $array): mixed {
1414
}
1515

1616
/**
17-
* Returns the first value of a given array.
17+
* Returns the last value of a given array.
1818
*
19-
* @param array $array The array to get the first value of.
20-
* @return mixed First value of the array, or null if the array is
19+
* @param array $array The array to get the last value of.
20+
* @return mixed Last value of the array, or null if the array is
2121
* empty. Note that null itself can also be a valid array value.
2222
*/
2323
function array_last(array $array): mixed {
@@ -37,10 +37,10 @@ function array_first(array $array) {
3737
}
3838

3939
/**
40-
* Returns the first value of a given array.
40+
* Returns the last value of a given array.
4141
*
42-
* @param array $array The array to get the first value of.
43-
* @return mixed First value of the array, or null if the array is
42+
* @param array $array The array to get the last value of.
43+
* @return mixed Last value of the array, or null if the array is
4444
* empty. Note that null itself can also be a valid array value.
4545
*/
4646
function array_last(array $array) {

0 commit comments

Comments
 (0)