File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -736,7 +736,9 @@ public function testDuplicatesPath()
736
736
public function testDuplicatesClosure ()
737
737
{
738
738
$ m = new Map ( [['i ' => ['p ' => '1 ' ]], ['i ' => ['p ' => 1 ]]] );
739
- $ r = $ m ->duplicates ( fn ( $ item , $ key ) => $ item ['i ' ]['p ' ] );
739
+ $ r = $ m ->duplicates ( function ( $ item , $ key ) {
740
+ return $ item ['i ' ]['p ' ];
741
+ } );
740
742
741
743
$ this ->assertInstanceOf ( Map::class, $ r );
742
744
$ this ->assertSame ( [1 => ['i ' => ['p ' => 1 ]]], $ r ->toArray () );
@@ -3801,7 +3803,9 @@ public function testUniquePath()
3801
3803
public function testUniqueClosure ()
3802
3804
{
3803
3805
$ m = new Map ( [['i ' => ['p ' => '1 ' ]], ['i ' => ['p ' => 1 ]]] );
3804
- $ r = $ m ->unique ( fn ( $ item , $ key ) => $ item ['i ' ]['p ' ] );
3806
+ $ r = $ m ->unique ( function ( $ item , $ key ) {
3807
+ return $ item ['i ' ]['p ' ];
3808
+ } );
3805
3809
3806
3810
$ this ->assertInstanceOf ( Map::class, $ r );
3807
3811
$ this ->assertSame ( [0 => ['i ' => ['p ' => '1 ' ]]], $ r ->toArray () );
You can’t perform that action at this time.
0 commit comments