File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -110,10 +110,8 @@ public function merge(self ...$others): void
110
110
111
111
public function insert (
112
112
int $ index ,
113
- InnerList |Item |ByteSequence |Token |bool |int |float |string $ element ,
114
113
InnerList |Item |ByteSequence |Token |bool |int |float |string ...$ elements
115
114
): void {
116
- array_unshift ($ elements , $ element );
117
115
$ offset = $ this ->filterIndex ($ index );
118
116
match (true ) {
119
117
null === $ offset => throw InvalidOffset::dueToIndexNotFound ($ index ),
Original file line number Diff line number Diff line change @@ -144,9 +144,9 @@ public function it_can_returns_the_container_element_keys(): void
144
144
*/
145
145
public function it_can_merge_one_or_more_instances (): void
146
146
{
147
- $ instance1 = new Parameters (['a ' => Item:: from ( false ) ]);
148
- $ instance2 = new Parameters (['b ' => Item:: from ( true ) ]);
149
- $ instance3 = new Parameters (['a ' => Item:: from ( 42 ) ]);
147
+ $ instance1 = new Parameters (['a ' =>false ]);
148
+ $ instance2 = new Parameters (['b ' => true ]);
149
+ $ instance3 = new Parameters (['a ' => 42 ]);
150
150
151
151
$ instance1 ->merge ($ instance2 , $ instance3 );
152
152
You can’t perform that action at this time.
0 commit comments