@@ -2439,26 +2439,26 @@ public function insertAfter( $element, $value ) : self
24392439 * ['a' => 'foo', 'b' => 'bar', 'c' => 'baz']
24402440 * ['a' => 'foo', 'c' => 'baz', 'b' => 'bar']
24412441 *
2442- * @param int $pos Position the element it should be inserted at
2443- * @param mixed $element Element to be inserted
2444- * @param mixed|null $key Element key or NULL to assign an integer key automatically
2442+ * @param int $pos Position the value should be inserted at
2443+ * @param mixed $value Value to be inserted
2444+ * @param mixed|null $key Value key or NULL to assign an integer key automatically
24452445 * @return self<int|string,mixed> Updated map for fluid interface
24462446 */
2447- public function insertAt ( int $ pos , $ element , $ key = null ) : self
2447+ public function insertAt ( int $ pos , $ value , $ key = null ) : self
24482448 {
24492449 if ( $ key !== null )
24502450 {
24512451 $ list = $ this ->list ();
24522452
24532453 $ this ->list = array_merge (
24542454 array_slice ( $ list , 0 , $ pos , true ),
2455- [$ key => $ element ],
2455+ [$ key => $ value ],
24562456 array_slice ( $ list , $ pos , null , true )
24572457 );
24582458 }
24592459 else
24602460 {
2461- array_splice ( $ this ->list (), $ pos , 0 , [$ element ] );
2461+ array_splice ( $ this ->list (), $ pos , 0 , [$ value ] );
24622462 }
24632463
24642464 return $ this ;
0 commit comments