Skip to content

Commit 0e371f6

Browse files
foxycodedg
authored andcommitted
typo (#247)
1 parent 745b477 commit 0e371f6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Utils/Arrays.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public static function searchKey(array $array, $key): ?int
101101

102102
/**
103103
* Inserts the contents of the $inserted array into the $array immediately after the $key.
104-
* If $key is null (or does not exist), it is inserted at the end.
104+
* If $key is null (or does not exist), it is inserted at the beginning.
105105
* @param string|int|null $key
106106
*/
107107
public static function insertBefore(array &$array, $key, array $inserted): void
@@ -115,7 +115,7 @@ public static function insertBefore(array &$array, $key, array $inserted): void
115115

116116
/**
117117
* Inserts the contents of the $inserted array into the $array before the $key.
118-
* If $key is null (or does not exist), it is inserted at the beginning.
118+
* If $key is null (or does not exist), it is inserted at the end.
119119
* @param string|int|null $key
120120
*/
121121
public static function insertAfter(array &$array, $key, array $inserted): void

0 commit comments

Comments
 (0)